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
I expected this to succeed since I am basically trying to update CAR_ID = 1 with new data.
However I get - UniqueConstraintViolatedException
com.googlecode.cqengine.index.unique.UniqueIndex$UniqueConstraintViolatedException: The application has attempted to add a duplicate object to the UniqueIndex on attribute 'carId', potentially causing inconsistencies between indexes. UniqueIndex should not be used with attributes which do not uniquely identify objects. Problematic attribute value: '1', problematic duplicate object: Car[carId=1, name='Mercedes']
I expected this to succeed since I am basically trying to update CAR_ID = 1 with new data.
However I get - UniqueConstraintViolatedException
Looking at
cqengine/code/src/main/java/com/googlecode/cqengine/TransactionalIndexedCollection.java
Lines 248 to 263 in a0fb1bf
If we move DELETE before ADD, unique index would work.
I don't fully understand exclusion logic and I can see some interaction due to remove before add for new readers.
If, that's the case. Then updating the documentation/code to block UniqueIndex and TransactionalIndexedCollection being used together.
The text was updated successfully, but these errors were encountered: