Skip to content

Commit

Permalink
HHH-18761 fix generation of named query method in presence of Jakarta…
Browse files Browse the repository at this point in the history
… Data

Signed-off-by: Gavin King <[email protected]>
  • Loading branch information
gavinking committed Oct 24, 2024
1 parent 383d32e commit c030768
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ private void handleNamedQuery(AnnotationMirror mirror, boolean checkHql) {
context.getEntityNameMappings(), context.getEnumTypesByValue() )
);
if ( statement instanceof SqmSelectStatement
&& isQueryMethodName( name ) ) {
&& isQueryMethodName( name )
&& !isJakartaDataStyle() ) {
putMember( name,
// TODO: respect @NamedQuery(resultClass)
new NamedQueryMethod(
new NamedQueryMethod(
this,
(SqmSelectStatement<?>) statement,
name.substring(1),
Expand Down

0 comments on commit c030768

Please sign in to comment.