Enum Class HibernateOrmConfigPersistenceUnit.HibernateTimeZoneStorageType
java.lang.Object
java.lang.Enum<HibernateOrmConfigPersistenceUnit.HibernateTimeZoneStorageType>
io.quarkus.hibernate.orm.deployment.HibernateOrmConfigPersistenceUnit.HibernateTimeZoneStorageType
- All Implemented Interfaces:
Serializable,Comparable<HibernateOrmConfigPersistenceUnit.HibernateTimeZoneStorageType>,Constable
- Enclosing interface:
HibernateOrmConfigPersistenceUnit
public static enum HibernateOrmConfigPersistenceUnit.HibernateTimeZoneStorageType
extends Enum<HibernateOrmConfigPersistenceUnit.HibernateTimeZoneStorageType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEquivalent to `native` if supported, `column` otherwise.Stores the timezone in a separate column next to the timestamp columnEquivalent to `native` if supported, `normalize-utc` otherwise.Stores the timestamp and timezone in a column of type `timestamp with time zone`Does not store the timezone, and loses timezone information upon persistingDoes not store the timezone, and loses timezone information upon persisting -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NATIVE
Stores the timestamp and timezone in a column of type `timestamp with time zone`. + Only available on some databases/dialects; if not supported, an exception will be thrown during static initialization. -
NORMALIZE
Does not store the timezone, and loses timezone information upon persisting. + Instead, normalizes the value: * upon persisting to the database, to a timestamp in the JDBC timezone set through `quarkus.hibernate-orm.jdbc.timezone`, or the JVM default timezone if not set. * upon reading back from the database, to the JVM default timezone. + Use this to get the legacy behavior of Quarkus 2 / Hibernate ORM 5 or older. -
NORMALIZE_UTC
Does not store the timezone, and loses timezone information upon persisting. + Instead, normalizes the value to a timestamp in the UTC timezone. -
COLUMN
Stores the timezone in a separate column next to the timestamp column. + Use `@TimeZoneColumn` on the relevant entity property to customize the timezone column. -
AUTO
Equivalent to `native` if supported, `column` otherwise. -
DEFAULT
Equivalent to `native` if supported, `normalize-utc` otherwise.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-