diff --git a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/annotation/QueryMethod.java b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/annotation/QueryMethod.java index 2dd5781628..c1a1ff7185 100644 --- a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/annotation/QueryMethod.java +++ b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/annotation/QueryMethod.java @@ -239,6 +239,11 @@ public class QueryMethod extends AbstractQueryMethod { private void comment(StringBuilder declaration) { declaration .append("\n/**"); + declaration + .append("\n * Execute the query {@value #") + .append(getConstantName()) + .append("}.") + .append("\n *"); see( declaration ); declaration .append("\n **/\n");