Package org.hibernate.annotations
Annotation Type TimeZoneColumn
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface TimeZoneColumn
Specifies the mapped column for storing the time zone information. The annotation can be used in conjunction with theTimeZoneStorageType.AUTO
andTimeZoneStorageType.COLUMN
. The column is simply ignored ifTimeZoneStorageType.AUTO
is used and the database supports native time zone storage.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
columnDefinition
(Optional) The SQL fragment that is used when generating the DDL for the column.boolean
insertable
(Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider.String
name
(Optional) The name of the column.String
table
(Optional) The name of the table that contains the column.boolean
updatable
(Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider.
-
-
-
Element Detail
-
name
String name
(Optional) The name of the column. Defaults to the property or field name, suffixed by_tz
.- Default:
- ""
-
-
-
columnDefinition
String columnDefinition
(Optional) The SQL fragment that is used when generating the DDL for the column.Defaults to the generated SQL to create a column of the inferred type.
- Default:
- ""
-
-
-
table
String table
(Optional) The name of the table that contains the column. If absent the column is assumed to be in the primary table.- Default:
- ""
-
-