-
- All Implemented Interfaces:
public abstract class PanacheMongoEntityBaseRepresents an entity. If your Mongo entities extend this class they gain auto-generated accessors to all their public fields, as well as a lot of useful methods. Unless you have a custom ID strategy, you should not extend this class directly but extend PanacheMongoEntity instead.
-
-
Constructor Summary
Constructors Constructor Description PanacheMongoEntityBase()
-
Method Summary
Modifier and Type Method Description final Unitpersist()Persist this entity in the database. final Unitupdate()Update this entity in the database. final UnitpersistOrUpdate()Persist this entity in the database or update it if it already exists. final Unitdelete()Delete this entity from the database if it is already persisted. -
-
Method Detail
-
persist
final Unit persist()
Persist this entity in the database. This will set its ID field if not already set.
-
persistOrUpdate
final Unit persistOrUpdate()
Persist this entity in the database or update it if it already exists.
-
-
-
-