File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
tooling/metamodel-generator/src
jakartaData/java/org/hibernate/processor/test/data/eg
main/java/org/hibernate/processor/annotation Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11package org .hibernate .processor .test .data .eg ;
22
33import jakarta .data .repository .BasicRepository ;
4+ import jakarta .data .repository .Query ;
45import jakarta .data .repository .Repository ;
56
7+ import java .util .stream .Stream ;
8+
69@ Repository
710public interface Publishers extends BasicRepository <Publisher ,Long > {
11+ @ Query (" " )
12+ Stream <Publisher > all ();
813}
Original file line number Diff line number Diff line change 7575import static org .hibernate .grammars .hql .HqlLexer .IDENTIFIER ;
7676import static org .hibernate .grammars .hql .HqlLexer .ORDER ;
7777import static org .hibernate .grammars .hql .HqlLexer .WHERE ;
78- import static org .hibernate .internal .util .StringHelper .isNotEmpty ;
78+ import static org .hibernate .internal .util .StringHelper .isEmpty ;
7979import static org .hibernate .internal .util .StringHelper .qualify ;
8080import static org .hibernate .processor .annotation .AbstractQueryMethod .isSessionParameter ;
8181import static org .hibernate .processor .annotation .AbstractQueryMethod .isSpecialParam ;
@@ -2143,7 +2143,7 @@ private void addQueryMethod(
21432143 throw new AssertionFailure ("@Entity annotation should not be missing" );
21442144 }
21452145 final String name = (String ) getAnnotationValue (annotation , "name" );
2146- return isNotEmpty (name ) ? resultType .asElement ().getSimpleName ().toString () : name ;
2146+ return isEmpty (name ) ? resultType .asElement ().getSimpleName ().toString () : name ;
21472147 }
21482148 else if ( primaryEntity != null ) {
21492149 return primaryEntity .getSimpleName ().toString ();
You can’t perform that action at this time.
0 commit comments