persist And Flush
Persist the given entity in the database, if not already persisted. Then flushes all pending changes to the database.
Return
the entity
See also
isPersistent
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
isPersistent
the entity to persist.