hibernate一对多双向关联中怎么配置list
1个回答
展开全部
Archives.hbm.xml中对Archives属性manager的配置
[html] view plain copy
<!-- USER_ID为ARCHIVES的弊滚梁外键 -->
<many-to-one name="manager"
column = "USER_ID"
class = "com.archivesManagement.domain.User"
not-null = "true"
><租运/备尺many-to-one>
[html] view plain copy
<!-- USER_ID为ARCHIVES的弊滚梁外键 -->
<many-to-one name="manager"
column = "USER_ID"
class = "com.archivesManagement.domain.User"
not-null = "true"
><租运/备尺many-to-one>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询