在使用hibernate查询时出现No row with the given identifier exists,后来发现是因为使用了<one-to-many
>时,one一方的主键内容不存在,只需要在<one-to-many>中加入 not-found="ignore"
就可以了.
hibernate中出现No row with the given identifier exists问题的解决办法
最新推荐文章于 2024-05-11 08:15:00 发布