From 7c7c65f42e52cb449537d5aef876a0baf07c2477 Mon Sep 17 00:00:00 2001 From: Labi0 Date: Fri, 27 Dec 2013 17:09:48 -0500 Subject: [PATCH] HHH-8912 - @NotFound applied to *-to-one relation in superclass (cherry picked from commit 1e7b03a2aeb65102706435fde3cfa0f084282cc1) --- .../envers/internal/entities/mapper/relation/ToOneIdMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/ToOneIdMapper.java b/hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/ToOneIdMapper.java index d99b31f26e..5fcac7d135 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/ToOneIdMapper.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/ToOneIdMapper.java @@ -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)