Top Description Methods
org.hibernate.annotations

public @Interface TimeZoneColumn

extends Annotation
Annotations
@Incubating
@Retention:RUNTIME
@Target:FIELD, METHOD
Imports
java.lang.annotation.Retention, .RetentionPolicy, .Target, org.hibernate.Incubating

Specifies the mapped column for storing the time zone information, for use in conjunction with TimeZoneStorageType#COLUMN or TimeZoneStorageType#AUTO. The column is simply ignored if AUTO is used and the database supports native time zone storage.
Authors
Christian Beikov, Steve Ebersole, Andrea Boriero
Since
6.0
See Also
TimeZoneStorage, TimeZoneStorageType#COLUMN, TimeZoneStorageType#AUTO

Method Summary

Modifier and TypeMethod and Description
public String
columnDefinition()

(Optional) The SQL fragment that is used when generating the DDL for the column.

public boolean
insertable()

(Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider.

public String
name()

(Optional) The name of the column.

public String
table()

(Optional) The name of the table that contains the column.

public boolean
updatable()

(Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

columnDefinitionback to summary
public 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.

insertableback to summary
public boolean insertable()

(Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider.

nameback to summary
public String name()

(Optional) The name of the column. Defaults to the property or field name, suffixed by _tz.

tableback to summary
public String table()

(Optional) The name of the table that contains the column. If absent the column is assumed to be in the primary table.

updatableback to summary
public boolean updatable()

(Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider.