HHH-8912 - @NotFound applied to *-to-one relation in superclass

This commit is contained in:
Labi0 2013-12-27 17:09:48 -05:00 committed by Lukasz Antoniak
parent f19c8e995a
commit 1e7b03a2ae
1 changed files with 1 additions and 1 deletions

View File

@ -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)