Skip to content

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

@jeroenvs

Description

@jeroenvs

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<>();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions