HHH-10372 - Change OffsetDateTimeType#getComparator() to return OffsetDateTime.timeLineOrder()
This commit is contained in:
parent
af1c646952
commit
4b80e154e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue