2
我有3個表A,B,C複合-ID休眠複雜的映射
Table A (
idA1 int unsigned not null,
idA2 int unsigned not null,
primary key(idA1, idA2)
)
Table B (
idB1 varchar(36) not null,
primary key(idB1)
)
Table C (
idC1 int unsigned not null,
idC2 varchar(36) not null,
idC3 int unsigned not null,
primary key(idC1, idC2, idC3),
foreign key(idC1, idC2) references A(idA1, idA2),
foreign key(idC3) references B(idB1)
)
我用conposite識別號鍵表A,但後來面臨的問題的映射表C. 如何使Hibernate映射與下一個結構?
這將是最好的,如果你可以添加的解決方案的情況下,您的文章之間的鏈接斷開。 – Ben