Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate trapped by Spring?

 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic