Synchronize changes held in the persistence context to the underlying database.
- Throws:
- if the flush fails.PersistenceException- if there is no transaction or if the entity manager has not been joined to the current transaction.TransactionRequiredException
- Since:
- Jakarta Persistence (JPA) 1.0