Skip to content

Commit 531ac99

Browse files
lucamoltenibeikov
andauthored
Update hibernate-core/src/main/java/org/hibernate/query/sqm/produce/function/ArgumentTypesValidator.java
Co-authored-by: Christian Beikov <[email protected]>
1 parent 26cbec5 commit 531ac99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/sqm/produce/function/ArgumentTypesValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private static boolean isCompatible(FunctionParameterType type, JdbcType jdbcTyp
253253
case IMPLICIT_JSON -> jdbcType.isImplicitJson();
254254
case XML -> jdbcType.isXml();
255255
case IMPLICIT_XML -> jdbcType.isImplicitXml();
256-
case ENUM -> jdbcType.isEnum();
256+
case ENUM -> javaType instanceof Class<?> clz && clz.isEnum();
257257
default -> true; // TODO: should we throw here?
258258
};
259259
}

0 commit comments

Comments
 (0)