Closed andrus closed 1 year ago
Annotating "objectId" property of a Cayenne object with @AgId creates inconsistencies that cause issues #613 :
@AgId
@Override @AgId(readable = false, writable = false) public ObjectId getObjectId() { return super.getObjectId(); }
Let's detect this specific case when merging annotated properties, and generate IDs that are the same as generated by default by CayenneAgEntityCompiler, except for the access rules taken from the annotation.
CayenneAgEntityCompiler
Annotating "objectId" property of a Cayenne object with
@AgId
creates inconsistencies that cause issues #613 :Let's detect this specific case when merging annotated properties, and generate IDs that are the same as generated by default by
CayenneAgEntityCompiler
, except for the access rules taken from the annotation.