After upgrading from OpenJPA 2.2.2 to 2.3.0, one of my regression tests
fails since Auditor.audit() delivers too many objects. In particular, after
changing a given field from x to y, some of the updated objects occur
twice, with the surplus occurrence reporting the field as changed from y to
y.
Is this a known issue?
The changes affect an embeddable type which occurs twice in a given entity:
@Entity
@Auditable
public class Container {
@AttributeOverrides(...)
private Item leftItem;
@AttributeOverrides(...)
private Item rightItem;
}
@Embeddable
@Auditable(values = { AuditableOperation.UPDATE })
public class Item {
}
Best regards,
Harald