DATACMNS-1768 - Reuse bean state in InstantiationAwarePropertyAccessor when setting multiple properties.
We now reuse the new bean in InstantiationAwarePropertyAccessor when setting properties. Previously, we used the initial bean state as the bean was held by a delegate PersistentPropertyAccessor which caused only the last set property to be visible.
privatestaticfinalStringNO_SETTER_OR_CONSTRUCTOR="Cannot set property %s because no setter, wither or copy constructor exists for %s!";
privatestaticfinalStringNO_CONSTRUCTOR_PARAMETER="Cannot set property %s because no setter, no wither and it's not part of the persistence constructor %s!";
@ -48,17 +52,41 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
@@ -48,17 +52,41 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
@ -68,6 +96,7 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
@@ -68,6 +96,7 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
@ -123,7 +152,7 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
@@ -123,7 +152,7 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
@ -41,10 +43,8 @@ public class InstantiationAwarePropertyAccessorFactory implements PersistentProp
@@ -41,10 +43,8 @@ public class InstantiationAwarePropertyAccessorFactory implements PersistentProp
@ -48,6 +51,25 @@ public class InstantiationAwarePersistentPropertyAccessorUnitTests {
@@ -48,6 +51,25 @@ public class InstantiationAwarePersistentPropertyAccessorUnitTests {