Hibernate / Hibernate interview questions II
Explain flush() method in Hibernate.
Flushing the session forces Hibernate to synchronize the in-memory state of the Session with the database (i.e. to write changes to the database). By default, Hibernate will flush changes automatically for you,
- before query executions,
- when a transaction is committed.
More Related questions...