Skip to content
New issue

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

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

Already on GitHub? # to your account

jakarta.annotation.Nonnull should imply optional=false #614

Open
gavinking opened this issue Apr 20, 2024 · 0 comments · May be fixed by #656
Open

jakarta.annotation.Nonnull should imply optional=false #614

gavinking opened this issue Apr 20, 2024 · 0 comments · May be fixed by #656
Labels
candidate-for-4 Good candidate for JPA 4

Comments

@gavinking
Copy link
Contributor

We should allow:

@Nonnull
String name;

as an alternative to:

@Basic(optional = false)
String name;

and similarly for @ManyToOne and @OneToOne.

@gavinking gavinking added the candidate-for-4 Good candidate for JPA 4 label Apr 20, 2024
gavinking added a commit to gavinking/persistence that referenced this issue Sep 20, 2024
see issue jakartaee#614

Signed-off-by: Gavin King <gavin@hibernate.org>
@gavinking gavinking linked a pull request Sep 20, 2024 that will close this issue
@gavinking gavinking linked a pull request Sep 20, 2024 that will close this issue
gavinking added a commit to gavinking/persistence that referenced this issue Sep 20, 2024
see issue jakartaee#614

Signed-off-by: Gavin King <gavin@hibernate.org>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
candidate-for-4 Good candidate for JPA 4
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant