DATACMNS-866 - Improved error message in invalid invocations of BasicPersistentEntity.getPropertyAccessor(…).
We now explicitly report the given object's type and the one expected in case of a mismatch when BasicPersistentEntity.getPropertyAccessor(…) is invoked.
privatestaticfinalStringTYPE_MISMATCH="Target bean of type %s is not of type of the persistent entity (%s)!";
privatefinalPreferredConstructor<T,P>constructor;
privatefinalTypeInformation<T>information;
privatefinalList<P>properties;
@ -391,7 +393,9 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement
@@ -391,7 +393,9 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement
@ -224,6 +224,20 @@ public class BasicPersistentEntityUnitTests<T extends PersistentProperty<T>> {
@@ -224,6 +224,20 @@ public class BasicPersistentEntityUnitTests<T extends PersistentProperty<T>> {