Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update persistent object in Hibernate

Tags:

java

hibernate

I need to update an Object. I fetch it. The object is a Persistent Object. Now.. If I change any properties, because is a persistent (not detached) object, any varations is immediately saved? I need to call a function? Or when session is flushed, the modification are stored?

like image 518
Luis C. Avatar asked Jan 20 '11 14:01

Luis C.


1 Answers

If it is a persistent object, the changes will be saved when the session is flushed.

like image 177
Chris Kooken Avatar answered Sep 23 '22 22:09

Chris Kooken