We're updating the issue view to help you get more done. 

named parameters binding are not correct when used within subquery

Description

test case : org.hibernate.test.subselect.CompositeIdTypeBindingTest

this only happens when querying a composite id entity and its collections which mapped using subquery and using named parameters.

the reason is in the method : org.hibernate.loader.Loader#bindNamedParameters , the algorithm used to caculate the parameter location assumed all types are single column, so when there is a composite id, the parameter location was not correctly caculated

Environment

None

Status

Assignee

Strong Liu

Reporter

Strong Liu

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.3.0.Beta3
4.2.2

Priority

Major