This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Any Simple  Example on Spring with Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Any Simple  Example on Spring with Hibernate" Watch "Any Simple  Example on Spring with Hibernate" New topic

Any Simple Example on Spring with Hibernate

Swaroop Reddy
Ranch Hand

Joined: Feb 25, 2009
Posts: 34
Hello ,
I am new to Spring with Hibernate web application.I just want a small example to create one webapplication using spring with hibernate
Thank you

Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3870

Spring and Hibernate are for two different purposes where Spring, a web framework and Hibernate is a persistence technology. But yes you can use hibernate for object persistence/retreival with Spring. Both distributions contain very good documentation to start with.

[How to ask questions] [Twitter]
Rahul Babbar
Ranch Hand

Joined: Jun 28, 2008
Posts: 210
One of the examples can be found at

It doesn't explain a great deal about both of them, but it is a decent small sample app using both Hibernate and Spring..

Rahul Babbar
I agree. Here's the link:
subject: Any Simple Example on Spring with Hibernate