Skip to content

Commit

Permalink
Fixed needsUpdate check in SaveProcessor #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Nawrok committed Dec 13, 2022
1 parent 6c39b1d commit 815c63a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,6 @@ private static boolean prepareUpdate(SaveRequest request, Table table, List<Assi
private static boolean needsUpdate(SaveRequest request, PropertyMetadata property) {
Object persisted = request.entity.getState().getPersistedValue(property.getName());
Object actual = request.entity.getValue(property);
if (persisted != actual)
return true;
if (persisted == null)
return false;
return !Objects.deepEquals(persisted, actual);
}

Expand Down

0 comments on commit 815c63a

Please sign in to comment.