读书人

No row with the given identifier ex

发布时间: 2012-09-05 15:19:35 作者: rapoo

No row with the given identifier exists_关于Hibnerate映射配置文件中的<many-to-one>注意事项

关于Hibnerate映射配置文件中的<many-to-one>注意事项

错误信息:No row with the given identifier exists

错误原因:1的那一端为空,只需加上not-found="ignore"? 来解决即可。

?

< many-to-one name = "ccmData" class = "com.huawei.usmccm.ccmdata.domain.vo.CcmData" not-found = "ignore" fetch = "select" > < column name = "PARENTID" /> </ many-to-one > ?

?

??????????????????????????????????????????????????????????????????????????????????? 田军tKF25401

???????????????????????????????????????????????????????????????????????? ??????? 2010-04-09

读书人网 >软件架构设计

热点推荐