File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate trapped by Spring?" Watch "Hibernate trapped by Spring?" New topic

Hibernate trapped by Spring?

Greg Charles

Joined: Oct 01, 2001
Posts: 2968

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

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

Joined: Oct 01, 2001
Posts: 2968

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

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:
subject: Hibernate trapped by Spring?
jQuery in Action, 3rd edition