HHH-8912 - @NotFound applied to *-to-one relation in superclass
This commit is contained in:
parent
f19c8e995a
commit
1e7b03a2ae
|
@ -107,7 +107,7 @@ public class ToOneIdMapper extends AbstractToOneMapper {
|
|||
boolean ignoreNotFound = false;
|
||||
if ( !referencedEntity.isAudited() ) {
|
||||
final String referencingEntityName = verCfg.getEntCfg().getEntityNameForVersionsEntityName( (String) data.get( "$type$" ) );
|
||||
ignoreNotFound = verCfg.getEntCfg().get( referencingEntityName ).getRelationDescription( getPropertyData().getName() ).isIgnoreNotFound();
|
||||
ignoreNotFound = verCfg.getEntCfg().getRelationDescription(referencingEntityName, getPropertyData().getName()).isIgnoreNotFound();
|
||||
}
|
||||
if ( ignoreNotFound ) {
|
||||
// Eagerly loading referenced entity to silence potential (in case of proxy)
|
||||
|
|
Loading…
Reference in New Issue