Skip to content

Commit

Permalink
Changing PanacheCompanion to PanacheMongoCompanion which seems to be …
Browse files Browse the repository at this point in the history
…the correct Type for Kotlin implementation
  • Loading branch information
felipeformentin committed Aug 25, 2021
1 parent cc16df8 commit 4b9f5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/mongodb-panache-kotlin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ https://kotlinlang.org/docs/tutorials/kotlin-for-py/objects-and-companion-object
[source,kotlin]
----
class Person : PanacheMongoEntity() {
companion object: PanacheCompanion<Person> { // <1>
companion object: PanacheMongoCompanion<Person> { // <1>
fun findByName(name: String) = find("name", name).firstResult()
fun findAlive() = list("status", Status.Alive)
fun deleteStefs() = delete("name", "Stef")
Expand Down

0 comments on commit 4b9f5ab

Please sign in to comment.