There is a guide for it https://github.com/quarkusio/quarkus/blob/master/docs/src/main/asciidoc/hibernate-orm-panache-kotlin.adoc
But it's not showing on the website (neither list nor direct URL). I guess some metadata somewhere is missing.
@gsmet if you tell me or @evanchooly what to do, we will send the right PR.
/cc @FroMage, @loicmathieu
/cc @gsmet, @Sanne
I think it's 1.6 material as a lot of the work has been done for 1.6.
I figured that might be the case. When is 1.6 due to ship? I'd love to get the mongo panache stuff done in time for that, too.
@evanchooly cut dates are here https://github.com/quarkusio/quarkus/wiki/Release-Planning#16
Enough before CR1 would be best.
perfect. thanks.
@gsmet can I assign it to 1.6?
Yes, it's going to be done as part of the 1.6 release process. I add the new guides when I sync the docs.
Hi,
some parts should be revisited.
For example:
@Entity
class Person : PanacheEntity {
companion object: PanacheCompanion<Person> { // (1)
fun findByName(name: String) = find("name", name).firstResult()
fun findAlive() = list("status", Status.Alive)
fun deleteStefs() = delete("name", "Stef")
}
lateinit var name: String // (2)
lateinit var birth: LocalDate
lateinit var status: Status
}
should be:
@Entity
class Person : PanacheEntity() {
companion object: PanacheCompanion<Person, Long> { // (1)
fun findByName(name: String) = find("name", name).firstResult()
fun findAlive() = list("status", Status.Alive)
fun deleteStefs() = delete("name", "Stef")
}
lateinit var name: String // (2)
lateinit var birth: LocalDate
lateinit var status: Status
}
since PanacheEntity has an explicit default constructor and PanacheCompanion wants the id type.
Definitely. That was changed after the docs were written and that was missed. I have a whole load of kotlin related changes coming up and i'll include this. Thanks.
Most helpful comment
Yes, it's going to be done as part of the 1.6 release process. I add the new guides when I sync the docs.