Skip to content

Commit

Permalink
Remove getClass() call - it was executed on Class and deleted any data
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k authored and manovotn committed Aug 21, 2024
1 parent f75057b commit 17b1b85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public PersistenceApiAbstraction(ResourceLoader resourceLoader) {
PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("jakarta.persistence.PersistenceContext");
PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("jakarta.persistence.PersistenceUnit");
PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("jakarta.persistence.PersistenceContextType");
if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) {
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;
Expand Down

0 comments on commit 17b1b85

Please sign in to comment.