HHH-18761 fix generation of named query method in presence of Jakarta Data
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
383d32e3e6
commit
c03076885c
|
@ -105,7 +105,8 @@ public abstract class AnnotationMeta implements Metamodel {
|
|||
context.getEntityNameMappings(), context.getEnumTypesByValue() )
|
||||
);
|
||||
if ( statement instanceof SqmSelectStatement
|
||||
&& isQueryMethodName( name ) ) {
|
||||
&& isQueryMethodName( name )
|
||||
&& !isJakartaDataStyle() ) {
|
||||
putMember( name,
|
||||
// TODO: respect @NamedQuery(resultClass)
|
||||
new NamedQueryMethod(
|
||||
|
|
Loading…
Reference in New Issue