Friday 29 January 2016

difference between session.flush() and commit() in hibernate

Commit will make the database commit
- Flushing is the process of synchronizing the underlying persistent
store with persistable state held in memory.
ie. it will update or insert into your tables in the running
transaction, but it _may_ not commit those changes (this depends on
your flush mode).
commit can not be rolback

No comments:

Post a Comment