【发布时间】:2009-08-14 00:47:33
【问题描述】:
考虑以下领域模型:
Issue
- id
- List<Comment>
Entry
- id
- List<Comment>
Comment
-id
-comment
在我的设计中,我试图创建两个连接表来管理关联; issue_cmets 和 entry_cmets。我假设@OneToMany 在问题和条目上,但是你如何映射多个连接表?使用hibernate注解,如何映射?
【问题讨论】:
标签: java hibernate annotations