Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making a detached Object persist

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I've been reading the Hibernate reference documentation and I'm having some questions on the following,



The call to update makes a detached object persistent again, you could say it binds it to a new unit of work, so any modifications you made to it while detached can be saved to the database. This includes any modifications
(additions/deletions) you made to a collection of that entity object.

When they call update, they are already in a Hibernate session (the session2 object), then how they say that it is in detached state? Please clarify me...

Thanks in advance!

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone on this please?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic