diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheQuery.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheQuery.java index d7a07e580dd96..c8c6c6d8fadc0 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheQuery.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheQuery.java @@ -12,8 +12,10 @@ import org.hibernate.Session; import org.hibernate.annotations.FilterDef; +import io.quarkus.hibernate.orm.panache.common.ProjectedFieldName; import io.quarkus.panache.common.Page; import io.quarkus.panache.common.Parameters; +import io.quarkus.panache.common.exception.PanacheQueryException; /** *

@@ -33,10 +35,29 @@ public interface PanacheQuery { // Builder /** - * Defines a projection class: the getters, and the public fields, will be used to restrict which fields should be - * retrieved from the database. + * Defines a projection class. This will transform the returned values into instances of the given type using the following + * mapping rules: + *