Skip to content

Commit 46ec58d

Browse files
committed
HHH-18761 fix generation of named query method in presence of Jakarta Data
Signed-off-by: Gavin King <[email protected]>
1 parent 9fb60cc commit 46ec58d

File tree

1 file changed

+2
-1
lines changed
  • tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation

1 file changed

+2
-1
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ private void handleNamedQuery(AnnotationMirror mirror, boolean checkHql) {
105105
context.getEntityNameMappings(), context.getEnumTypesByValue() )
106106
);
107107
if ( statement instanceof SqmSelectStatement
108-
&& isQueryMethodName( name ) ) {
108+
&& isQueryMethodName( name )
109+
&& !isJakartaDataStyle() ) {
109110
putMember( name,
110111
// TODO: respect @NamedQuery(resultClass)
111112
new NamedQueryMethod(

0 commit comments

Comments
 (0)