Annotation Interface 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.
Since:
6.0
See Also:
  • Required Element Summary

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

    • value

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