- All Implemented Interfaces:
- Serializable, Comparator, org.hibernate.usertype.EnhancedUserType, org.hibernate.usertype.ParameterizedType, org.hibernate.usertype.UserType, org.hibernate.usertype.UserVersionType, IntegratorConfiguredType
public class PersistentOffsetDateTime
extends AbstractVersionableUserType<java.time.OffsetDateTime,Timestamp,TimestampColumnOffsetDateTimeMapper>
implements org.hibernate.usertype.ParameterizedType, IntegratorConfiguredType
Persist OffsetDateTime
via Hibernate. This type is
mostly compatible with org.joda.time.contrib.hibernate.PersistentDateTime however
you should note that JodaTime's org.joda.time.DateTime has only millisecond precision,
whilst JSR 310 offers nanosecond precision. When interpreting nanosecond values, Joda time will
round down to the nearest millisecond. The type is stored using the timezone as configured
using Hibernate's configuration property 'hibernate.jdbc.time_zone' and presented in the
JVM using the JVM's default zone. You can optionally override or use as an alternative to this property the
parameter 'databaseZone' on this type.
Alternatively provide the 'javaZone' can be used to similarly configure the zone of the
value on return from the database.
- See Also:
- Serialized Form