mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
Fix using wrong vale mapping for paramter binging with EntityCollectionPart
This commit is contained in:
parent
411355852a
commit
d33200b309
@ -3813,7 +3813,10 @@ private void resolveSqmParameter(
|
|||||||
BiConsumer<Integer,JdbcParameter> jdbcParameterConsumer) {
|
BiConsumer<Integer,JdbcParameter> jdbcParameterConsumer) {
|
||||||
sqmParameterMappingModelTypes.put( expression, valueMapping );
|
sqmParameterMappingModelTypes.put( expression, valueMapping );
|
||||||
final Bindable bindable;
|
final Bindable bindable;
|
||||||
if ( valueMapping instanceof Association ) {
|
if( valueMapping instanceof EntityCollectionPart){
|
||||||
|
bindable = ((EntityCollectionPart)valueMapping).getKeyTargetMatchPart();
|
||||||
|
}
|
||||||
|
else if ( valueMapping instanceof Association ) {
|
||||||
bindable = ( (Association) valueMapping ).getForeignKeyDescriptor();
|
bindable = ( (Association) valueMapping ).getForeignKeyDescriptor();
|
||||||
}
|
}
|
||||||
else if ( valueMapping instanceof EntityMappingType ) {
|
else if ( valueMapping instanceof EntityMappingType ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user