isPersistent

open fun isPersistent(): Boolean

Returns true if this 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 this entity is persistent in the database.