wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Hibernate trapped by Spring? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate trapped by Spring?" Watch "Hibernate trapped by Spring?" New topic
Author

Hibernate trapped by Spring?

Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2840
    
  11

In his book "Seam In Action", Dan Allen writes,

As the story (really) goes, Gavin King was fed up with developers using Hibernate improperly by trapping it inside of the stateless design proliferated by the Spring Framework.


I'm not really clear what that means. I'm sure he'll elaborate later in the book, but I wonder if anyone could take a crack at it now? How have we been using Hibernate improperly? If you can explain (basically) how Seam is going to fix that, then that's even better!

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

There are many ways to misuse Hibernate.

I'm not sure how accurate one line like that can be to describe how Gavin may have felt. Regardless, Seam is very powerful and fun to use, and it stands on its own regardless of what and where Spring is.

-Cameron McKenzie
Albert Kam
Ranch Hand

Joined: Oct 18, 2007
Posts: 58
Are there any good books out there about the should and shouldnt with the usage of hibernate ? Like the pattern or the antipattern or something .. because, at least for me, it'll be a very interesting read !


Be nice !
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2840
    
  11

Hibernate can be misused, and Seam is fun? OK, got it.

Now what does being trapped in a stateless design mean? Really. I have no idea what that sentence means.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

I asume it is highlighing that Hibernate can maintain state (in a first or second level cache) and some frameworks prevent it from being used in this way.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate trapped by Spring?
 
Similar Threads
Seam Vs Spring
Hibernate Made Easy
Is this book different from other books released before?
is Seam just another framework?
Seam Framework: Book Question