An embeddable list is not populated when using Envers with Hibernate in JBoss EAP

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • Hibernate 5

Issue

  • An @Embeddable "MyEmbeddable" is defined to include an optional/nullable @JoinColumn
  • An entity is defined with a List<MyEmbeddable> property
  • The Envers AuditReader fails to populate the List with values when the embeddable's join column property is null

Resolution

This issue is resolved as part of:

Root Cause

This is a known defect (Content from hibernate.atlassian.net is not included.HHH-11364).

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.