HHH-10372 - Change OffsetDateTimeType#getComparator() to return OffsetDateTime.timeLineOrder()
This commit is contained in:
parent
f470709df8
commit
e261506d61
|
@ -13,7 +13,6 @@ import java.util.Locale;
|
||||||
|
|
||||||
import org.hibernate.dialect.Dialect;
|
import org.hibernate.dialect.Dialect;
|
||||||
import org.hibernate.engine.spi.SessionImplementor;
|
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.java.OffsetDateTimeJavaDescriptor;
|
||||||
import org.hibernate.type.descriptor.sql.TimestampTypeDescriptor;
|
import org.hibernate.type.descriptor.sql.TimestampTypeDescriptor;
|
||||||
|
|
||||||
|
@ -53,7 +52,7 @@ public class OffsetDateTimeType
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public Comparator<OffsetDateTime> getComparator() {
|
public Comparator<OffsetDateTime> getComparator() {
|
||||||
return ComparableComparator.INSTANCE;
|
return OffsetDateTime.timeLineOrder();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue