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 ce562b7 commit 6636374Copy full SHA for 6636374
hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmUtil.java
@@ -690,9 +690,8 @@ private static <T> JdbcMapping jdbcMapping(QueryParameterBinding<T> domainParamB
690
if ( domainParamBinding.getType() instanceof JdbcMapping mapping ) {
691
return mapping;
692
}
693
- // TODO: why do the test and the cast disagree here? getBindType() vs getType()
694
else if ( domainParamBinding.getBindType() instanceof BasicValuedMapping ) {
695
- return ( (BasicValuedMapping) domainParamBinding.getType() ).getJdbcMapping();
+ return ( (BasicValuedMapping) domainParamBinding.getBindType() ).getJdbcMapping();
696
697
else {
698
return null;
0 commit comments