aspose file tools*
The moose likes Spring and the fly likes confusion? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply locked New topic
Author

confusion?

harsh anajwala
Greenhorn

Joined: Oct 13, 2009
Posts: 16
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

Joined: Feb 05, 2001
Posts: 17259
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Patwa Chirag
Greenhorn

Joined: Jan 26, 2010
Posts: 1
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: confusion?