Skip to content

Commit

Permalink
Fixed update operation check #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Nawrok committed Dec 12, 2022
1 parent 6c39b1d commit b77c00a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +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 b77c00a

Please sign in to comment.