- All Implemented Interfaces:
- Serializable, Comparator, org.hibernate.usertype.EnhancedUserType, org.hibernate.usertype.ParameterizedType, org.hibernate.usertype.UserType, org.hibernate.usertype.UserVersionType, IntegratorConfiguredType
public class PersistentInstantAsTimestamp
extends AbstractVersionableUserType<org.joda.time.Instant,Timestamp,TimestampColumnInstantMapper>
implements org.hibernate.usertype.ParameterizedType, IntegratorConfiguredType
Persist Instant
via Hibernate using a JDBC Timestamp datatype with a reference date. - note that sub-second values will not
be retained.
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