Package org.hibernate.annotations
Annotation Type TimeZoneStorage
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface TimeZoneStorage
Specifies how the time zone information of a persistent property or field should be persisted. TheTimeZoneStorageannotation may be used in conjunction with theBasicannotation, or in conjunction with theElementCollectionannotation when the element collection value is of basic type. If theTimeZoneStorageannotation is not used, theTimeZoneStorageTypevalue is assumed to beNORMALIZED.Example: @Entity public class Person { public OffsetDateTime getBirthDateTimeNormalized() {...} @TimeZoneStorage @TimeZoneColumn(column = @Column(...)) public OffsetDateTime getBirthDateTimeNativeOrColumn() {...} ... }- See Also:
TimeZoneColumn
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description TimeZoneStorageTypevalueThe storage strategy for the time zone information.
-
-
-
Element Detail
-
value
TimeZoneStorageType value
The storage strategy for the time zone information.- Default:
- org.hibernate.annotations.TimeZoneStorageType.AUTO
-
-