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