• Post Reply 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A question about Spring and Hibernate

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Vishwanath!

I wasn't so sure.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic