Annotation Type GeneratedColumn


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface GeneratedColumn
    Specifies that a column is defined using a DDL generated always as clause or equivalent, and that Hibernate should fetch the generated value from the database after each SQL INSERT or UPDATE.
    See Also:
    ColumnDefault
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      The expression to include in the generated DDL.
    • Element Detail

      • value

        String value
        The expression to include in the generated DDL.
        Returns:
        the SQL expression that is evaluated to generate the column value.