HHH-15286 Query with a Composite Identifier (@IdClass) throws an exception

This commit is contained in:
Andrea Boriero 2022-05-19 18:01:14 +02:00 committed by Andrea Boriero
parent 00e8506a13
commit 6409db767d
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ public class DefaultLoadEventListener implements LoadEventListener {
return;
}
}
else if ( idClass.isInstance( event.getEntityId() ) ) {
return;
}
}
else if ( idMapping instanceof NonAggregatedIdentifierMapping ) {
if ( idClass.isInstance( event.getEntityId() ) ) {