PanacheEntity

@MappedSuperclass
open class PanacheEntity : PanacheEntityBase

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun delete(): Uni<Void>

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

Link copied to clipboard
@CheckReturnValue
open fun flush(): Uni<Void>

Flushes all pending changes to the database.

Link copied to clipboard
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.

Link copied to clipboard
@CheckReturnValue
open fun <T : PanacheEntityBase> persist(): Uni<T>

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

Link copied to clipboard
@CheckReturnValue
open fun <T : PanacheEntityBase> persistAndFlush(): Uni<T>

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.

Link copied to clipboard
open override fun toString(): String

Default toString() implementation

Properties

Link copied to clipboard
open var id: Long?

The auto-generated ID field. This field is set by Hibernate ORM when this entity is persisted.