[size=medium]org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists: [com.shenzhoutelecom.dao.bop.customer.model.TCustomer#0]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.shenzhoutelecom.dao.bop.customer.model.TCustomer#0]
出现这个异常是数据库数据问题:
具体说明(个人目前理解):
table1(多) ,table2(一);
table1的映射文件中:
<many-to-one name="table2" class="com.Table2">
<column name="table2_id"></column>
</many-to-one>
当表table1中的table2_id 为null时不出现此异常;
当表table1中的table2_id 为某值时,而此值table2中并没有,则出现此异常
上述情况是在spring中整合hibernate出现的
如果单
在hibernate中的 则是 org.hibernate.ObjectNotFoundException ,情况一样 [/size]
出现这个异常是数据库数据问题:
具体说明(个人目前理解):
table1(多) ,table2(一);
table1的映射文件中:
<many-to-one name="table2" class="com.Table2">
<column name="table2_id"></column>
</many-to-one>
当表table1中的table2_id 为null时不出现此异常;
当表table1中的table2_id 为某值时,而此值table2中并没有,则出现此异常
上述情况是在spring中整合hibernate出现的
如果单
在hibernate中的 则是 org.hibernate.ObjectNotFoundException ,情况一样 [/size]