Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about Spring and Hibernate

 
Claude Cundiff
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cameron,

First of all, thanks for taking the time to share your knowledge!

I'm a newbie to Hibernate. From my understanding, Hibernate is very much integrated with Spring. What should I know about Spring in order to use Hibernate?

Also, I'd like to see the table of contents for your book but can't find it.

Thanks!
[ June 03, 2008: Message edited by: Ulf Dittmer ]
 
Vishwanath GNV
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Claude,

Hibernate can be used without Spring Framework too. If you are using Spring with Hibernate, then there is no much need of managing manually the Session Transaction management.

Hibernate is not tightly couple with any of the web frameworks.

Regards
Vishwanath GNV
 
Claude Cundiff
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vishwanath!

I wasn't so sure.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no doubt that many Spring applications leverage Hibernate as a persistence mechanism, but Hibernate itself is completely independent from Spring.

One of my objectives in this book was to be as focussed as possible in the subject matter. When you write a book, you want to cover everything, and do everything, but in the end, trying to cover too much makes learning difficult for the reader. In my opinion, Hibernate should be fun and easy to learn, because it's fun and easy to use. Adding chapters on Spring or Seam or NHibernate and such, in my opinion, would detract from the focal point of the book, which is to help people learn Hibernate, and learn it quickly.

Having said that though, it is my experience that when people really do understand how Hibernate works, they find it incredibly easy to integrate it into new applications that might use Seam or JSF or GWT. And that is really the goal of the book, Hibernate Made Easy - to teach people Hibernate, and give them such a fundamental understanding of the technology, that they can easily and eagerly integrate it into any Java project on which they might be working.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic