@@ -187,18 +187,20 @@ private void addAuxiliaryMembersForAnnotation(String annotationName, String pref
187
187
}
188
188
189
189
private void addAuxiliaryMembersForMirror (AnnotationMirror mirror , String prefix ) {
190
- mirror .getElementValues ().forEach ((key , value ) -> {
191
- if ( key .getSimpleName ().contentEquals ("name" ) ) {
192
- final String name = value .getValue ().toString ();
193
- if ( !name .isEmpty () ) {
194
- putMember ( prefix + name , auxiliaryMember ( mirror , prefix , name ) );
190
+ if ( !isJakartaDataStyle () ) {
191
+ mirror .getElementValues ().forEach ((key , value ) -> {
192
+ if ( key .getSimpleName ().contentEquals ("name" ) ) {
193
+ final String name = value .getValue ().toString ();
194
+ if ( !name .isEmpty () ) {
195
+ putMember ( prefix + name , auxiliaryMember ( mirror , prefix , name ) );
196
+ }
195
197
}
196
- }
197
- });
198
+ });
199
+ }
198
200
}
199
201
200
202
private NameMetaAttribute auxiliaryMember (AnnotationMirror mirror , String prefix , String name ) {
201
- if ( ! isJakartaDataStyle () && "QUERY_" .equals (prefix ) ) {
203
+ if ( "QUERY_" .equals (prefix ) ) {
202
204
final AnnotationValue resultClass = getAnnotationValue ( mirror , "resultClass" );
203
205
// if there is no explicit result class, we will infer it later by
204
206
// type checking the query (this is allowed but not required by JPA)
@@ -207,7 +209,7 @@ private NameMetaAttribute auxiliaryMember(AnnotationMirror mirror, String prefix
207
209
resultClass == null ? JAVA_OBJECT : resultClass .getValue ().toString (),
208
210
"jakarta.persistence.TypedQueryReference" , null );
209
211
}
210
- else if ( ! isJakartaDataStyle () && "GRAPH_" .equals (prefix ) ) {
212
+ else if ( "GRAPH_" .equals (prefix ) ) {
211
213
return new TypedMetaAttribute ( this , name , prefix , getQualifiedName (),
212
214
"jakarta.persistence.EntityGraph" , null );
213
215
}
0 commit comments