is Persistent
Returns true if the given entity is persistent in the database. If yes, all modifications to its persistent fields will be automatically committed to the database at transaction commit time.
Return
true if the entity is persistent in the database.
Parameters
entity
the entity to check