HHH-17652 Fix NullPointerException when mapping audited many-to-one relationships
fixes b384b37f39
This commit is contained in:
parent
43627332cf
commit
a2640a69e6
|
@ -196,6 +196,9 @@ public class ToOneIdMapper extends AbstractToOneMapper {
|
|||
EntityInfo referencedEntity,
|
||||
Map data,
|
||||
Object primaryKey) {
|
||||
if (referencedEntity.isAudited()) {
|
||||
return false;
|
||||
}
|
||||
final String referencingEntityName = enversService.getEntitiesConfigurations()
|
||||
.getEntityNameForVersionsEntityName( (String) data.get( "$type$" ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue