Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

confusion?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi...
I am a newbie for Spring and Hibernate.
What i want to know is how we should decide that which from the following we should choose for our application.

1.Only Hibernate.
2.Only Spring
3.Combination of Spring and Hibernate.

In my project i am supposed to provide Database portability so We chose Hibernate as ORM. now the thing is Should i implement Only Hibernate or Combination of Spring and Hibernate??

What will be pros and cones in both the option??
Thanks in advance.. :
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

harsh anajwala wrote:Hi...
I am a newbie for Spring and Hibernate.
What i want to know is how we should decide that which from the following we should choose for our application.

1.Only Hibernate.
2.Only Spring
3.Combination of Spring and Hibernate.

In my project i am supposed to provide Database portability so We chose Hibernate as ORM. now the thing is Should i implement Only Hibernate or Combination of Spring and Hibernate??

What will be pros and cones in both the option??
Thanks in advance.. :



They are two totally different products, so it isn't an either or question. So 1 and 2 doesn't make any sense to me.

The questions are
1) Do you want to use Spring? if yes, then use it.
2) Do you want to use Hibernate? If yes, then use it.

If you answered yes to the two above, then you are using both Spring and Hibernate.

Mark
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Spring and Hibernate are two different framwork which are buildup on totally different concept,

Hibernate is for like as you said for ORM

Spring is the like weight container which helps to create loosely coupled application.

both Spring and Hibernate together provide you nice and well managed environment for your application.

I suggest to use both together.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic