File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate object states and lifecycle?

 
arulk pillai
Author
Ranch Hand
Posts: 3380
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many new hibernate users get confused bewteen hibernate object states (persistent, detached, transient) and life cycles. Also do you cover any aspects of domain driven design in your book?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've made some of the unedited content from my book available on my website. One of the most popular links is about "How Hibernate Works", and I think it does a pretty good job at explaining how Hibernate manages the lifecyle of persistent objects. Forward this link to your team and have them read it. It should help make sense of things:

How Hibernate Works: Hibernate and the POJO Lifecycle States

-Cameron McKenzie
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't the whole state-ori´┐Żnted approach part of the EJB 3.0 persistence specification? I mean, don't these "Hibernate object states" apply to JPA providers in general rather than Hibernate in particular?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that what we have seen over the past few years is a merging of the minds with regards to data persistence and Java applications. So, yes, I'd say that many of these concepts cut across most of the dominant persistence mechanisms that are being promoted today.

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic