Skip to content

Commit

Permalink
HHH-18863 allow index creation to be disabled in processor
Browse files Browse the repository at this point in the history
also cache enum results read from index
  • Loading branch information
gavinking committed Dec 5, 2024
1 parent 83110b4 commit e4e1b59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ && packagePresent(quarkusOrmPanachePackage) ) {
context.setInclude( options.getOrDefault( INCLUDE, "*" ) );
context.setExclude( options.getOrDefault( EXCLUDE, "" ) );

context.setIndexing( parseBoolean( options.get( INDEX ) ) );
context.setIndexing( parseBoolean( options.getOrDefault( INDEX, "true" ) ) );

return parseBoolean( options.get( FULLY_ANNOTATION_CONFIGURED_OPTION ) );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ else if (isElementCollectionProperty(property)) {
}
}


@Override
Type propertyType(String typeName, String propertyPath) {
final TypeElement type = findClassByQualifiedName(typeName);
Expand Down Expand Up @@ -226,8 +225,10 @@ Set<String> getEnumTypesForValue(String value) {
}
if ( indexing ) {
final Set<String> indexed = getIndexedEnumTypesByValue(value);
enumTypesByValue.put(value, indexed);
return indexed;
if ( indexed != null ) {
enumTypesByValue.put(value, indexed);
return indexed;
}
}
//TODO: else do a full scan like in findEntityByUnqualifiedName()
return null;
Expand Down

0 comments on commit e4e1b59

Please sign in to comment.