File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
tooling/metamodel-generator/src/main/java/org/hibernate/processor Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ && packagePresent(quarkusOrmPanachePackage) ) {
291
291
context .setInclude ( options .getOrDefault ( INCLUDE , "*" ) );
292
292
context .setExclude ( options .getOrDefault ( EXCLUDE , "" ) );
293
293
294
- context .setIndexing ( parseBoolean ( options .get ( INDEX ) ) );
294
+ context .setIndexing ( parseBoolean ( options .getOrDefault ( INDEX , "true" ) ) );
295
295
296
296
return parseBoolean ( options .get ( FULLY_ANNOTATION_CONFIGURED_OPTION ) );
297
297
}
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ else if (isElementCollectionProperty(property)) {
134
134
}
135
135
}
136
136
137
-
138
137
@ Override
139
138
Type propertyType (String typeName , String propertyPath ) {
140
139
final TypeElement type = findClassByQualifiedName (typeName );
@@ -226,8 +225,10 @@ Set<String> getEnumTypesForValue(String value) {
226
225
}
227
226
if ( indexing ) {
228
227
final Set <String > indexed = getIndexedEnumTypesByValue (value );
229
- enumTypesByValue .put (value , indexed );
230
- return indexed ;
228
+ if ( indexed != null ) {
229
+ enumTypesByValue .put (value , indexed );
230
+ return indexed ;
231
+ }
231
232
}
232
233
//TODO: else do a full scan like in findEntityByUnqualifiedName()
233
234
return null ;
You can’t perform that action at this time.
0 commit comments