Polishing.

Simplify code.

Original Pull Request: #3059
This commit is contained in:
Mark Paluch
2024-03-07 09:33:04 +01:00
committed by Christoph Strobl
parent 0766f2e56b
commit ee75b8cd78

View File

@@ -157,15 +157,6 @@ public abstract class AbstractPersistentProperty<P extends PersistentProperty<P>
@Override
public Iterable<? extends TypeInformation<?>> getPersistentEntityTypeInformation() {
if (isMap() || isCollectionLike()) {
return entityTypeInformation.get();
}
if (!isEntity()) {
return Collections.emptySet();
}
return entityTypeInformation.get();
}
@@ -292,6 +283,7 @@ public abstract class AbstractPersistentProperty<P extends PersistentProperty<P>
return getActualTypeInformation().getType();
}
@Override
public boolean usePropertyAccess() {
return usePropertyAccess.get();
}