Hibernate报错:ObjectNotFoundException解决办法

报错信息:

org.hibernate.event.internal.DefaultLoadEventListener onLoad
INFO: HHH000327: Error performing load command : org.hibernate.ObjectNotFoundException: 
No row with the given identifier exists: [com.weixin.db.model.Adminusers#15]

报错信息实体类后面【#15】表示实体类对应表id=15的记录找不到。

 

参考:https://www.cnblogs.com/crazytrip/p/5355056.html

posted @ 2018-03-15 15:48  AlisonGavin  阅读(682)  评论(0编辑  收藏  举报