开发者

hibernate foreign key

i have entity A that has foreign key to entity B, does entity B need to have foreign key back to entity A? if yes, how? coz entity B, id already used for primary key

entity A --> id, entity_a_name, foreign_key_entity_B 开发者_JAVA百科

entity B ---> id, entity_b_name


No, your mapping is fine as is.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜