minor fix in storage validation logic
@@ -58,7 +58,7 @@ public class OIndexUnique extends OIndexOneValue {
}
if (!newValue.getIdentity().isPersistent()) {
- newValue = newValue.getRecord();
+ newValue = newValue.getRecord().getIdentity();
}
return newValue.getIdentity();
};
