hibernate中关于null index column for collection的异常
来源:互联网 发布:南京搜狗快速优化排名 编辑:程序博客网 时间:2024/06/02 22:46
最近在hibernate级联查询中,抛出这个错误 后来调查半天 原因如下
主表级联明细表的时候 明细表中有个line_no的字段
主表配置如下
<list name="deliveryOrderDetails" cascade="all" >
<key column="delivery_Order_id"/>
<list-index column="line_no_"/>
<one-to-many class="com.pzx.DeliveryOrderDetail" />
</list>
明细表DeliveryOrderDetail在数据库中的line_no不能为空 为空的话 hibernate级联查询就抛出null index column for collection 错误!!!
0 0
- hibernate中关于null index column for collection的异常
- 关于Hibernate中null id的问题
- hibernate文件配置出现Repeated column in mapping for entity的Mapping异常处理
- Hibernate 异常 Repeated column in mapping for entity (转)
- Hibernate中的"Repeated column in mapping for entity"异常
- Hibernate 异常 Repeated column in mapping for entity (转)
- Hibernate:Repeated column in mapping for entity异常
- org.hibernate.MappingException: Could not determine type for: java.util.Collection, for columns: [org.hibernate.mapping.Column(l
- hibernate的异常 Configured SessionFactory: null
- 关于 Cannot create JDBC driver of class '' for connect URL 'null' 的异常
- [Hibernate]"column ambiguously defined"异常
- 关于struts2异常ognl.OgnlException: target is null for setProperty
- SQLServer2000编程中出现的异常:ResultSet can not re-read row data for column X 问题
- 关于hibernate的LazyInitializationException异常
- hibernate创建表的时候出现Incorrect column specifier for column 'sid'
- 关于mybatis 中collection does not contain value for
- 关于java 中 的 null。
- (struts配置数据源问题)关于 Cannot create JDBC driver of class '' for connect URL 'null' 的异常
- Kubernetes摘要
- Android中使用背景设置透明度问题总结
- 打印十字图
- octomap
- 菜鸟成长记-UICollectionView使用
- hibernate中关于null index column for collection的异常
- oralce代理用户登录--工作备忘2016/03/09
- virt-manager启动本地连接报错:internal error: could not get interface XML description: File operation failed
- golang 快捷付值需要注意的地方
- iOS开发中实时监听app的网络连接状态问题
- char byte int互转
- 检测当前iOS设备类型方法
- 让APP不被android系统杀掉
- AngularJS 指令