jakartaee / persistence

https://jakartaee.github.io/persistence/
Other
186 stars 55 forks source link

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

Open gavinking opened 2 months ago

gavinking commented 2 months ago

We should allow:

@Nonnull
String name;

as an alternative to:

@Basic(optional = false)
String name;

and similarly for @ManyToOne and @OneToOne.