Skip to content

Commit e4f8674

Browse files
garydgregorysebersole
authored andcommitted
HHH-18466 egression from 5.6.15.Final where a mutable natural IDs query
cannot find an entity
1 parent 4e60de1 commit e4f8674

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/CompoundNaturalIdMapping.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ private static boolean isMutable(List<SingularAttributeMapping> attributes) {
8989
for ( int i = 0; i < attributes.size(); i++ ) {
9090
final SingularAttributeMapping attributeMapping = attributes.get( i );
9191
final AttributeMetadata metadata = attributeMapping.getAttributeMetadata();
92-
if ( ! metadata.isUpdatable() ) {
93-
return false;
92+
if ( metadata.isUpdatable() ) {
93+
return true;
9494
}
9595
}
9696

97-
return true;
97+
return false;
9898
}
9999

100100
@Override

0 commit comments

Comments
 (0)