public class PersistentInstantAsMillisLong extends AbstractVersionableUserType<org.joda.time.Instant,Long,LongColumnInstantMapper>
Instant
via Hibernate using milliseconds of the day. This type is
mostly compatible with org.joda.time.contrib.hibernate.PersistentInstantExact however
you should note that JodaTime's Instant
has only millisecond precision,
whilst JSR 310 offers nanosecond precision. When interpreting nanosecond values, Joda time will
round down to the nearest millisecond.Constructor and Description |
---|
PersistentInstantAsMillisLong() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
applyConfiguration, next, seed
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
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass, sqlTypes
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public PersistentInstantAsMillisLong()
public int compare(Object o1, Object o2)
compare
in interface Comparator
compare
in class AbstractVersionableUserType<org.joda.time.Instant,Long,LongColumnInstantMapper>
Copyright © 2010–2018 Jadira Systems. All rights reserved.