Top Description Methods
org.hibernate.annotations

public @Interface GeneratedColumn

extends Annotation
Annotations
@ValueGenerationType
generatedBy:GeneratedAlwaysGeneration
@Target:FIELD, METHOD
@Retention:RUNTIME
Imports
org.hibernate.generator.internal.GeneratedAlwaysGeneration, java.lang.annotation.Retention, .Target

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.
Author
Gavin King
Since
6.0
See Also
ColumnDefault, DialectOverride.GeneratedColumn

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the SQL expression that is evaluated to generate the column value.
value
()

The expression to include in the generated DDL.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The expression to include in the generated DDL.

Returns:String

the SQL expression that is evaluated to generate the column value.