Browse Source

Polishing.

Simplify code.

Original Pull Request: #3059
pull/2865/head
Mark Paluch 2 years ago committed by Christoph Strobl
parent
commit
ee75b8cd78
No known key found for this signature in database
GPG Key ID: E6054036D0C37A4B
  1. 10
      src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java

10
src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java

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

Loading…
Cancel
Save