From 3874b06456e9a91a98805d963733d902b151e817 Mon Sep 17 00:00:00 2001 From: Stephane Epardaud Date: Tue, 6 Jul 2021 17:12:02 +0200 Subject: [PATCH] Hibernate/Panache doc fixes --- docs/src/main/asciidoc/hibernate-orm-panache.adoc | 5 +++-- docs/src/main/asciidoc/hibernate-reactive-panache.adoc | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/src/main/asciidoc/hibernate-orm-panache.adoc b/docs/src/main/asciidoc/hibernate-orm-panache.adoc index 143877075b1e3..7c8284b3f7107 100644 --- a/docs/src/main/asciidoc/hibernate-orm-panache.adoc +++ b/docs/src/main/asciidoc/hibernate-orm-panache.adoc @@ -662,7 +662,8 @@ This is also called **dynamic instantiation** or **constructor expression**, mor link:https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#hql-select-clause[hql select clause] The projection class needs to be a valid Java Bean and have a constructor that contains all its attributes, this constructor will be used to -instantiate the projection DTO instead of using the entity class. This must be the only constructor of the class. +instantiate the projection DTO instead of using the entity class. This class must have a matching constructor with all the class attributes as parameters. + [source,java] ---- @@ -1115,7 +1116,7 @@ That's all there is to it: with Panache, Hibernate ORM has never looked so trim Hibernate ORM with Panache relies on compile-time bytecode enhancements to your entities. -It attempts to identity archives with Panache entities (and consumers of Panache entities) +It attempts to identify archives with Panache entities (and consumers of Panache entities) by the presence of the marker file `META-INF/panache-archive.marker`. Panache includes an annotation processor that will automatically create this file in archives that depend on Panache (even indirectly). If you have disabled annotation processors you may need to create diff --git a/docs/src/main/asciidoc/hibernate-reactive-panache.adoc b/docs/src/main/asciidoc/hibernate-reactive-panache.adoc index 24845fa7f65fd..5cb1545ad6e9e 100644 --- a/docs/src/main/asciidoc/hibernate-reactive-panache.adoc +++ b/docs/src/main/asciidoc/hibernate-reactive-panache.adoc @@ -571,7 +571,7 @@ PanacheQuery query = Person.find("status", Status.Alive).project(Per 1. The `@RegisterForReflection` annotation instructs Quarkus to keep the class and its members during the native compilation. More details about the `@RegisterForReflection` annotation can be found on the xref:writing-native-applications-tips.adoc#registerForReflection[native application tips] page. 2. We use public fields here, but you can use private fields and getters/setters if you prefer. -3. This constructor will be used by Hibernate, it must be the only constructor in your class and have all the class attributes as parameters. +3. This constructor will be used by Hibernate, and it must have a matching constructor with all the class attributes as parameters. [WARNING] @@ -981,7 +981,7 @@ That's all there is to it: with Panache, Hibernate Reactive has never looked so Hibernate Reactive with Panache relies on compile-time bytecode enhancements to your entities. -It attempts to identity archives with Panache entities (and consumers of Panache entities) +It attempts to identify archives with Panache entities (and consumers of Panache entities) by the presence of the marker file `META-INF/panache-archive.marker`. Panache includes an annotation processor that will automatically create this file in archives that depend on Panache (even indirectly). If you have disabled annotation processors you may need to create