flush

Die Methode void flush() gehört zum EntityManager Interface. Sie sorgt dafür, dass Änderungen in die Datenbank geschrieben werden.

/**
* Synchronize the persistence context to the
* underlying database.
* @throws TransactionRequiredException if there is
* no transaction
* @throws PersistenceException if the flush fails
*/