HHH-18617 Avoid reading unowned association key when filters are enabled
This commit is contained in:
parent
aecb1d9e86
commit
0f0f50de96
|
@ -1587,8 +1587,7 @@ public class ToOneAttributeMapping
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( hasNotFoundAction()
|
else if ( hasNotFoundAction()
|
||||||
|| getAssociatedEntityMappingType().getSoftDeleteMapping() != null
|
|| getAssociatedEntityMappingType().getSoftDeleteMapping() != null ) {
|
||||||
|| affectedByEnabledFilters ) {
|
|
||||||
// For the target side only add keyResult when a not-found action is present
|
// For the target side only add keyResult when a not-found action is present
|
||||||
keyResult = foreignKeyDescriptor.createTargetDomainResult(
|
keyResult = foreignKeyDescriptor.createTargetDomainResult(
|
||||||
fetchablePath,
|
fetchablePath,
|
||||||
|
|
Loading…
Reference in New Issue