---
title: "Hibernate: No row with the given identifier exists"
author: "ilusm"
date: "2008-05-29T14:09:00Z"
tags: []
slug: "hibernate-no-row-with-the-given-identifier-exists"
draft: false
lastmod: "2008-05-29T14:09:00Z"
id: 232241
url: "https://ilusm.iteye.com/blog/232241"
---

最简单的原因是ID错误

org.hibernate.ObjectNotFoundException: No row with the given identifier exists: \[cn.cedex.srm.model.ShipNoticeOrder#A1093080516094434, ]  
...

之前前台给后台传参数时。传了两个ID过去，一个从input中传过去的，一个已参数的形式传过去的。结果webwork后台接收到的ID时   “ID1， ”因此Hibernata查询不到这个ID对应的记录了。