From dbe2c5451e123eaca74ab748158058f1ec883c0d Mon Sep 17 00:00:00 2001 From: Gavin King Date: Wed, 7 Feb 2024 11:48:51 +0100 Subject: [PATCH] more blurb about finder/query methods --- .../annotations/processing/package-info.java | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/processing/package-info.java b/hibernate-core/src/main/java/org/hibernate/annotations/processing/package-info.java index 76ebc5a2e6..367d3b0ac7 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/processing/package-info.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/processing/package-info.java @@ -21,8 +21,31 @@ * *

* Annotations in this package control Hibernate's compile-time - * tooling. For example, this code defines a DAO-style repository - * object: + * tooling, and depend on the use of the annotation processors + * in the {@code hibernate-jpamodelgen} or {@code query-validator} + * modules. If the appropriate annotation processor is not enabled + * at build time, these annotations have no effect. + *

+ * Finder methods and query methods are usually declared by an + * interface, say {@code Queries}, and their implementations + * are generated into a class whose name follows the convention + * of the JPA static metamodel, that is, {@code Queries_}. + *

+ *

+ * For example, this code defines a DAO-style repository object: *

  * package org.example;
  *