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

Add @Nullable support to set required=false on property constraints #62

Open
jeroenvs opened this issue May 31, 2022 · 0 comments
Open

Comments

@jeroenvs
Copy link
Member

jeroenvs commented May 31, 2022

It should be possible to add the @nullable annotation on fields, making them required=false. Overriding the database constraint.

    @Nullable
    @ElementCollection
    @CollectionTable(name = "cars_inspections", joinColumns = @JoinColumn(name = "cars_id"))
    private List<Inspection> inspections = new ArrayList<>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant