Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

confusion?

 
harsh anajwala
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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.. :
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
Patwa Chirag
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.

 
    Bookmark Topic Watch Topic
  • New Topic