Annotation Type CheckConstraint

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String constraint
      (Required) The native SQL expression to be checked.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String name
      (Optional) The name of the constraint.
      String options
      (Optional) A SQL fragment appended to the generated DDL which creates this constraint.
    • Element Detail

      • constraint

        String constraint
        (Required) The native SQL expression to be checked.
      • name

        String name
        (Optional) The name of the constraint.

        Defaults to a provider-generated name.

        Default:
        ""
      • options

        String options
        (Optional) A SQL fragment appended to the generated DDL which creates this constraint.
        Since:
        3.2
        Default:
        ""