Method Summary
All Methods Instance Methods Default Methods
Delete this entity from the database, if it is already persisted.
Returns true if this entity is persistent in the database.
Persist this entity in the database, if not already persisted.
Persist this entity in the database, if not already persisted.
Method Details
persist
Persist this entity in the database, if not already persisted. This will set your ID field if it is not already set.
Specified by:
persist in interface PanacheManagedEntityOperations <Void ,Boolean >
See Also:
isPersistent()
invalid reference
#persist(Iterable)
invalid reference
#persist(Stream)
invalid reference
#persist(Object, Object...)
persistAndFlush
default Void persistAndFlush ()
Persist this entity in the database, if not already persisted. This will set your ID field if it is not already set.
Then flushes all pending changes to the database.
Specified by:
persistAndFlush in interface PanacheManagedEntityOperations <Void ,Boolean >
See Also:
isPersistent()
invalid reference
#persist(Iterable)
invalid reference
#persist(Stream)
invalid reference
#persist(Object, Object...)
delete
Delete this entity from the database, if it is already persisted.
Specified by:
delete in interface PanacheManagedEntityOperations <Void ,Boolean >
See Also:
isPersistent()
invalid reference
#delete(String, Object...)
invalid reference
#delete(String, Map)
invalid reference
#delete(String, Parameters)
invalid reference
#deleteAll()
isPersistent
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.
Specified by:
isPersistent in interface PanacheManagedEntityOperations <Void ,Boolean >
Returns:
true if this entity is persistent in the database.