Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart merge of annotated AgId parts on top of Cayenne model #581

Open
andrus opened this issue Sep 27, 2022 · 0 comments
Open

Smart merge of annotated AgId parts on top of Cayenne model #581

andrus opened this issue Sep 27, 2022 · 0 comments
Labels

Comments

@andrus
Copy link
Contributor

andrus commented Sep 27, 2022

Per #580 , we fixed merging of annotated attributes and relationships on top of the model created by CayenneAgEntityCompiler. Overrides of IDs is still done the "old" way - if @AgId is present, we replace Cayenne-specific ID parts with generic ID parts. This may cause subtle bugs in the code.

Should implement a smart merge instead. See CayenneAgEntityBuilder.buildAnnotatedProperties

While we are at it, we may re-implement attributes and relationships merge via AgEntityOverlay, and proper unit tests for the whole merge mechanism

@andrus andrus added the bug label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant