PanacheMongoEntityBase

abstract class PanacheMongoEntityBase

Represents 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.

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun delete()

Delete this entity from the database if it is already persisted.

Link copied to clipboard
fun persist()

Persist this entity in the database. This will set its ID field if not already set.

Link copied to clipboard

Persist this entity in the database or update it if it already exists.

Link copied to clipboard
fun update()

Update this entity in the database.