Package org.hibernate.annotations
Annotation Type GeneratedColumn
@Target({FIELD,METHOD})@Retention(RUNTIME)public @interfaceGeneratedColumn
Specifies that a column is defined using a DDLgenerated always asclause or equivalent, and that Hibernate should fetch the generated value from the database after each SQLINSERTorUPDATE.- Since:
- 6.0
- See Also:
ColumnDefault,DialectOverride.GeneratedColumn
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.