Skip to content

Commit 4e0de5c

Browse files
committed
HHH-19035 mark two JdbcTypes as comparable
1 parent 93887cb commit 4e0de5c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/H2DurationIntervalSecondJdbcType.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ public Class<?> getPreferredJavaTypeClass(WrapperOptions options) {
4343
return Duration.class;
4444
}
4545

46+
@Override
47+
public boolean isComparable() {
48+
return true;
49+
}
50+
4651
@Override
4752
public <T> JdbcLiteralFormatter<T> getJdbcLiteralFormatter(JavaType<T> javaType) {
4853
return (appender, value, dialect, wrapperOptions) ->

hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLIntervalSecondJdbcType.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ public int getDefaultSqlTypeCode() {
4343
return SqlTypes.INTERVAL_SECOND;
4444
}
4545

46+
@Override
47+
public boolean isComparable() {
48+
return true;
49+
}
50+
4651
@Override
4752
public Class<?> getPreferredJavaTypeClass(WrapperOptions options) {
4853
return Duration.class;

0 commit comments

Comments
 (0)