-
public abstract class ReactivePanacheMongoEntityBaseRepresents 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 ReactivePanacheMongoEntity instead.
-
-
Constructor Summary
Constructors Constructor Description ReactivePanacheMongoEntityBase()
-
Method Summary
Modifier and Type Method Description final <T extends ReactivePanacheMongoEntityBase> Uni<T>persist()Persist this entity in the database. final <T extends ReactivePanacheMongoEntityBase> Uni<T>update()Update this entity in the database. final <T extends ReactivePanacheMongoEntityBase> Uni<T>persistOrUpdate()Persist this entity in the database or update it if it already exist. final Uni<Void>delete()Delete this entity from the database, if it is already persisted. -
-
Method Detail
-
persist
final <T extends ReactivePanacheMongoEntityBase> Uni<T> persist()
Persist this entity in the database. This will set it's ID field if not already set.
-
update
final <T extends ReactivePanacheMongoEntityBase> Uni<T> update()
Update this entity in the database.
-
persistOrUpdate
final <T extends ReactivePanacheMongoEntityBase> Uni<T> persistOrUpdate()
Persist this entity in the database or update it if it already exist.
-
-
-
-