Annotation Type Check


  • @Target({TYPE,METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface Check
    Specifies a check constraint to be included in the generated DDL.
    • When a field or property is annotated, the check constraint is added to the column definition.
    • When an entity class is annotated, the check constraint is added to the primary table.
    See Also:
    DialectOverride.Check
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String constraints
      The check constraint, written in native SQL.
    • Element Detail

      • constraints

        String constraints
        The check constraint, written in native SQL.