Annotation Type ColumnDefault


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface ColumnDefault
    Specifies that a column has a default value specified in DDL.

    @ColumnDefault may be used in combination with:

    • DynamicInsert, to let the database fill in the value of a null entity attribute, or
    • @Generated(INSERT), to populate an entity attribute with the defaulted value of a database column.
    See Also:
    GeneratedColumn
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      The DEFAULT value to use in generated DDL.
    • Element Detail

      • value

        String value
        The DEFAULT value to use in generated DDL.
        Returns:
        a SQL expression that evaluates to the default column value