HHH-10372 - Change OffsetDateTimeType#getComparator() to return OffsetDateTime.timeLineOrder()

This commit is contained in:
Andrea Boriero 2016-01-19 19:17:32 +00:00
parent f470709df8
commit e261506d61
1 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ import java.util.Locale;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.internal.util.compare.ComparableComparator;
import org.hibernate.type.descriptor.java.OffsetDateTimeJavaDescriptor;
import org.hibernate.type.descriptor.sql.TimestampTypeDescriptor;
@ -53,7 +52,7 @@ public class OffsetDateTimeType
@Override
@SuppressWarnings("unchecked")
public Comparator<OffsetDateTime> getComparator() {
return ComparableComparator.INSTANCE;
return OffsetDateTime.timeLineOrder();
}
@Override