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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

confusion?

 
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.. :
 
ranger
Posts: 17344
11
Mac IntelliJ IDE 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
 
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.

 
Good night. Drive safely. Here's a tiny ad for the road:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!