We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ff3ca commit 720d4bdCopy full SHA for 720d4bd
hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmUtil.java
@@ -685,9 +685,8 @@ private static <T> JdbcMapping jdbcMapping(QueryParameterBinding<T> domainParamB
685
if ( domainParamBinding.getType() instanceof JdbcMapping mapping ) {
686
return mapping;
687
}
688
- // TODO: why do the test and the cast disagree here? getBindType() vs getType()
689
else if ( domainParamBinding.getBindType() instanceof BasicValuedMapping ) {
690
- return ( (BasicValuedMapping) domainParamBinding.getType() ).getJdbcMapping();
+ return ( (BasicValuedMapping) domainParamBinding.getBindType() ).getJdbcMapping();
691
692
else {
693
return null;
0 commit comments