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