About
The Database synchronization involves writing to the database any updates to persistent entities and their relationships.
The state of persistent entities is (synchronized to|entered into) the database:
- at transaction commit.
- or as a result of the flush operation
The persistence provider runtime is permitted to perform synchronization to the database when a transaction is active.
The EntityManager and Query setFlushMode methods can be used to control synchronization semantics.