HHH-18466 egression from 5.6.15.Final where a mutable natural IDs query

cannot find an entity
This commit is contained in:
Gary Gregory 2024-08-07 19:22:27 -04:00 committed by Steve Ebersole
parent 4e60de1130
commit e4f86744aa
1 changed files with 3 additions and 3 deletions

View File

@ -89,12 +89,12 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
for ( int i = 0; i < attributes.size(); i++ ) {
final SingularAttributeMapping attributeMapping = attributes.get( i );
final AttributeMetadata metadata = attributeMapping.getAttributeMetadata();
if ( ! metadata.isUpdatable() ) {
return false;
if ( metadata.isUpdatable() ) {
return true;
}
}
return true;
return false;
}
@Override