When using ValidityAuditStrategy, if you have an audited entity which contains a list of Embedded beans annotated as follows:
@ElementCollection(targetClass = EmbeddedBean.class)
@OrderColumn(name = "SETORDINAL")
private final List<EmbeddedBean> embeddedList = new ArrayList<>();
When you add or remove elements from this list to create a new revision, it seems that the revend is not set properly on some elements in audit table. When querying that list from a revision, you get a java.lang.IndexOutOfBoundsException.
|