Skip to content

Commit b77c00a

Browse files
committed
Fixed update operation check #19
1 parent 6c39b1d commit b77c00a

File tree

1 file changed

+0
-2
lines changed
  • core/src/main/java/net/lecousin/reactive/data/relational/query/operation

1 file changed

+0
-2
lines changed

core/src/main/java/net/lecousin/reactive/data/relational/query/operation/SaveProcessor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,6 @@ private static boolean prepareUpdate(SaveRequest request, Table table, List<Assi
459459
private static boolean needsUpdate(SaveRequest request, PropertyMetadata property) {
460460
Object persisted = request.entity.getState().getPersistedValue(property.getName());
461461
Object actual = request.entity.getValue(property);
462-
if (persisted != actual)
463-
return true;
464462
if (persisted == null)
465463
return false;
466464
return !Objects.deepEquals(persisted, actual);

0 commit comments

Comments
 (0)