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

Jakarta Persistence MapKey diagnostics #49

Closed
kathrynkodama opened this issue Nov 17, 2020 · 0 comments · Fixed by #58
Closed

Jakarta Persistence MapKey diagnostics #49

kathrynkodama opened this issue Nov 17, 2020 · 0 comments · Fixed by #58
Assignees
Labels
diagnostic Diagnostic item

Comments

@kathrynkodama
Copy link
Contributor

Add the following diagnostics related to MapKey:

  1. Add a diagnostic to validate that the @MapKeyClass and @MapKey annotations are not used on the same field or property.
    https://jakarta.ee/specifications/persistence/3.0/jakarta-persistence-spec-3.0.html#mapkey-annotation

  2. Add a diagnostic to validate that if more than one @MapKeyJoinColumn annotation is applied to a field or property, both the name and the referencedColumnName elements must be specified in each such@MapKeyJoinColumn annotation.
    https://jakarta.ee/specifications/persistence/3.0/jakarta-persistence-spec-3.0.html#a15450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostic Diagnostic item
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants