Skip to content

Commit

Permalink
Fix the if-else condition in PersistenceApiAbstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Aug 21, 2024
1 parent 17b1b85 commit ffd8a83
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public PersistenceApiAbstraction(ResourceLoader resourceLoader) {
PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("jakarta.persistence.PersistenceUnit");
PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("jakarta.persistence.PersistenceContextType");
if (PERSISTENCE_CONTEXT_TYPE_CLASS.equals(Dummy.class)) {
EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED");
} else {
EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE;
} else {
EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED");
}
ENTITY_CLASS = annotationTypeForName("jakarta.persistence.Entity");
MAPPED_SUPERCLASS_CLASS = annotationTypeForName("jakarta.persistence.MappedSuperclass");
Expand Down

0 comments on commit ffd8a83

Please sign in to comment.