diff --git a/docs/src/main/asciidoc/hibernate-orm-panache-kotlin.adoc b/docs/src/main/asciidoc/hibernate-orm-panache-kotlin.adoc index 8a45bc598b384..e4916084d6668 100644 --- a/docs/src/main/asciidoc/hibernate-orm-panache-kotlin.adoc +++ b/docs/src/main/asciidoc/hibernate-orm-panache-kotlin.adoc @@ -103,6 +103,65 @@ implementation("io.quarkus:quarkus-hibernate-orm-panache-kotlin") <1> <1> Note the addition of `-kotlin` on the end. Generally you'll only need this version but if your project will be using both Java and Kotlin code, you can safely include both artifacts. +Additionally, you need to configure the Kotlin `all-open` plugin according to your build tool: + +[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"] +.pom.xml +---- + + org.jetbrains.kotlin + kotlin-maven-plugin + ${kotlin.version} + + + compile + + compile + + + + test-compile + + test-compile + + + + + + org.jetbrains.kotlin + kotlin-maven-allopen + ${kotlin.version} + + + + true + ${maven.compiler.release} + + all-open + + + + + <1> + + + + +---- +<1> Note the addition of the `all-open:annotation=jakarta.persistence.Entity` option. + +[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"] +.build.gradle +---- +allOpen { + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") + annotation("jakarta.persistence.Entity") <1> + annotation("io.quarkus.test.junit.QuarkusTest") +} +---- +<1> Note the addition of the `jakarta.persistence.Entity` annotation. + == Using the repository pattern