diff --git a/hibernate-java8/src/main/java/org/hibernate/type/OffsetDateTimeType.java b/hibernate-java8/src/main/java/org/hibernate/type/OffsetDateTimeType.java index f8d667a772..05f0ee1180 100644 --- a/hibernate-java8/src/main/java/org/hibernate/type/OffsetDateTimeType.java +++ b/hibernate-java8/src/main/java/org/hibernate/type/OffsetDateTimeType.java @@ -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 getComparator() { - return ComparableComparator.INSTANCE; + return OffsetDateTime.timeLineOrder(); } @Override