Skip to content

Commit

Permalink
HHH-8912 - @NotFound applied to *-to-one relation in superclass
Browse files Browse the repository at this point in the history
  • Loading branch information
Labi0 authored and lukasz-antoniak committed Jan 29, 2014
1 parent f19c8e9 commit 1e7b03a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void nullSafeMapToEntityFromMap(AuditConfiguration verCfg, Object obj, Ma
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)
Expand Down

0 comments on commit 1e7b03a

Please sign in to comment.