Skip to content

Commit a844323

Browse files
authored
Merge pull request #48243 from nort3x/patch-1
Update PanacheMongoEntityBase.kt kotlin - opened functions
2 parents 6fc8544 + a2e36be commit a844323

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extensions/panache/mongodb-panache-kotlin/runtime/src/main/kotlin/io/quarkus/mongodb/panache/kotlin/PanacheMongoEntityBase.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ import io.quarkus.mongodb.panache.kotlin.runtime.KotlinMongoOperations.Companion
1313
abstract class PanacheMongoEntityBase {
1414

1515
/** Persist this entity in the database. This will set its ID field if not already set. */
16-
fun persist() {
16+
open fun persist() {
1717
INSTANCE.persist(this)
1818
}
1919

2020
/** Update this entity in the database. */
21-
fun update() {
21+
open fun update() {
2222
INSTANCE.update(this)
2323
}
2424

2525
/** Persist this entity in the database or update it if it already exists. */
26-
fun persistOrUpdate() {
26+
open fun persistOrUpdate() {
2727
INSTANCE.persistOrUpdate(this)
2828
}
2929

@@ -32,7 +32,7 @@ abstract class PanacheMongoEntityBase {
3232
*
3333
* @see [PanacheMongoCompanionBase.deleteAll]
3434
*/
35-
fun delete() {
35+
open fun delete() {
3636
INSTANCE.delete(this)
3737
}
3838
}

0 commit comments

Comments
 (0)