HHH-18466 egression from 5.6.15.Final where a mutable natural IDs query
cannot find an entity
This commit is contained in:
parent
4e60de1130
commit
e4f86744aa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue