Beginner |
|
Joined: Thu Oct 30, 2003 6:29 am Posts: 30 Location: Germany, KA
|
AUTO-FLUSH
having modified an object in the session, it will be persisted automatically after session is closed, or flush() is called. You don't need save() or update()
NO AUTOMATIC FLUSHING
modifying an entity won't lead to automatic persistance. only if you call flush() explicitly the changes are written to the db.
If you make changes to an entity, close a session without calling flush(), keep a reference to this object and than open a new session you can persist those changes by calling update(obj); a simple flush() won't persist entity-changes done in a former session.
EVICT()
will abandon all changes to an entity since last flush()
|
|