Skip to content

Commit

Permalink
Fix persister on fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 5, 2024
1 parent 15b7ab5 commit 945dca4
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -388,7 +388,11 @@ private static Persister<?> getDelegate(Class<?> fieldType) {

private static Persister<?> getDelegate(Field field, Class<?> fieldType) {
DelegatePersistence delegate = field.getAnnotation(DelegatePersistence.class);
return delegate == null ? getDelegate(fieldType) : getDelegate(delegate.value());
if (delegate == null)
return getDelegate(fieldType);

Persister<?> persister = loadedDelegates.get(delegate.value());
return persister == null ? loadedDelegates.get(persistRedirects.get(fieldType)) : persister;
}

private static PersistField[] getFields(Class<?> clazz) {
Expand Down

0 comments on commit 945dca4

Please sign in to comment.