@Audited
@Entity
public class TestEntity {
...
@ElementCollection
private List<Child> children;
...
}
generate this scheme: create table [TestEntity_children_AUD] ( [REV] int not null, [TestEntity_id] bigint not null, [REVTYPE] smallint, ... primary key ([REV], [REVTYPE], [TestEntity_id]) ) This is wrong. this cause a children property must have only one element in it. Or not unique exception will be thrown! |