You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UniquenessValidator checks assigned field for uniqueness but simultaneously check whether primary key (id) doesn't equal. But it doesn't work correctly when entity is new. It does mean that id is null and validator check id for null and it is the cause of issue. Need to compare ids when entity isn't new in other words for UPDATE operation.
The text was updated successfully, but these errors were encountered:
UniquenessValidator checks assigned field for uniqueness but simultaneously check whether primary key (id) doesn't equal. But it doesn't work correctly when entity is new. It does mean that id is null and validator check id for null and it is the cause of issue. Need to compare ids when entity isn't new in other words for UPDATE operation.
The text was updated successfully, but these errors were encountered: