Skip to content

@Id annotation does not generate required constraint with annotation processor #1661

@shanon84

Description

@shanon84

Hey there,
if you generate constraints with the annotation processor, an @id annotation only generates a "unique" constraint, but no "required" one. This way it is possible to have nodes without an Id as long as the field is not present on the node. Normally we use the @GeneratedValue annotation too, which prevents it, but if you use custom cypher you can create a node without an id. Is it possible to generate "required" constrain as default for @id annotation too?

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions