HHH-18617 Avoid reading unowned association key when filters are enabled

This commit is contained in:
Marco Belladelli 2024-09-17 11:33:07 +02:00
parent ce7aeaecb0
commit e5494fd227
No known key found for this signature in database
GPG Key ID: DBD6E257ABE9EA3D
1 changed files with 1 additions and 2 deletions

View File

@ -1583,8 +1583,7 @@ public class ToOneAttributeMapping
}
}
else if ( hasNotFoundAction()
|| getAssociatedEntityMappingType().getSoftDeleteMapping() != null
|| affectedByEnabledFilters ) {
|| getAssociatedEntityMappingType().getSoftDeleteMapping() != null ) {
// For the target side only add keyResult when a not-found action is present
keyResult = foreignKeyDescriptor.createTargetDomainResult(
fetchablePath,