public class PersistentLocalTime extends AbstractParameterizedTemporalUserType<org.joda.time.LocalTime,Time,TimeColumnLocalTimeMapper> implements org.hibernate.usertype.ParameterizedType, IntegratorConfiguredType
LocalTime
via Hibernate as a SQL TIME datatype - note that sub-second values will not
be retained. This type is basically compatible with org.joda.time.contrib.hibernate.PersistentLocalTimeAsTime.
However, note that org.joda.time.contrib.hibernate.PersistentLocalTimeAsTime contains a bug where times written
down will be offset from GMT due to its use of Time.setTime(long)
. This class is not affected by this
issue, but this means you cannot rely on the interpretation of this type to be the same for both classes.
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.Constructor and Description |
---|
PersistentLocalTime() |
applyConfiguration
doWrapSession, getParameterValues, setParameterValues
doNullSafeGet, doNullSafeSet, fromXMLString, getColumnMapper, nullSafeGet, nullSafeSet, objectToSQLString, returnedClass, sqlTypes, toXMLString
afterNullSafeOperation, assemble, beforeNullSafeOperation, deepCopy, disassemble, equals, hashCode, isMutable, replace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration
public PersistentLocalTime()
Copyright © 2010–2018 Jadira Systems. All rights reserved.