persist And Flush
Persist the given entity in the database, if not already persisted. Then flushes all pending changes to the database.
See also
Parameters
entity
the entity to persist.
Persist the given entity in the database, if not already persisted. Then flushes all pending changes to the database.
the entity to persist.