Annotation Type TimeZoneStorage

  • @Incubating
    public @interface TimeZoneStorage
    Specifies how the time zone information of a persistent property or field should be persisted. This annotation may be used in conjunction with the Basic annotation, or in conjunction with the ElementCollection annotation when the element collection value is of basic type. If the TimeZoneStorage annotation is not used, the TimeZoneStorageType has a default value determined by the dialect and by the configuration property "hibernate.timezone.default_storage".

    For example:

     public class Person {
         @Column(name = "birth_timestamp")
         @TimeZoneColumn(name = "birth_zone")
         public OffsetDateTime birthDate;
         public OffsetDateTime registrationDate;
    See Also:
    TimeZoneStorageType, TimeZoneColumn
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      TimeZoneStorageType value
      The storage strategy for the time zone information.
    • Element Detail

      • value

        TimeZoneStorageType value
        The storage strategy for the time zone information.