org.hibernate.ObjectNotFoundException: No row with the given identifier exists 发生这个错误的原因是: 数据库中没有建外键关联,但是实体对象建了一对多关系,当被引用的表数据删除之后,引用它的对象加载的时候就会发生找不到的错误。