小编Ste*_*nio的帖子

JPA + Hibernate - 实体关系中的循环 - 级联策略

I have a set of entities that connect to each other forming a cycle i.e., parent entity P has two one-to-many relationships with two child entities C1 and C2 and each one of these has a one-to-many relationship with another entity A. Entity A realises the association of these entities (C1,C2) and defines the relationship's attributes (it is not just a join table). All the relationships are navigable in both directions.
域对象
The following question arises from this design: What should …

java hibernate jpa cascade

10
推荐指数
1
解决办法
1947
查看次数

标签 统计

cascade ×1

hibernate ×1

java ×1

jpa ×1