Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ import io.quarkus.mongodb.panache.kotlin.runtime.KotlinMongoOperations.Companion
abstract class PanacheMongoEntityBase {

/** Persist this entity in the database. This will set its ID field if not already set. */
fun persist() {
open fun persist() {
INSTANCE.persist(this)
}

/** Update this entity in the database. */
fun update() {
open fun update() {
INSTANCE.update(this)
}

/** Persist this entity in the database or update it if it already exists. */
fun persistOrUpdate() {
open fun persistOrUpdate() {
INSTANCE.persistOrUpdate(this)
}

Expand All @@ -32,7 +32,7 @@ abstract class PanacheMongoEntityBase {
*
* @see [PanacheMongoCompanionBase.deleteAll]
*/
fun delete() {
open fun delete() {
INSTANCE.delete(this)
}
}
Loading