错误报告:org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists

原因:多对一时,一方数据为空导致

 

@ManyToOne(fetch = FetchType.LAZY)

@JoinColumn(name = "USER_ID", nullable = false, insertable = false, updatable = false)

@NotFound(action = NotFoundAction.IGNORE)

public DcUserInfo getDcUserInfo() {

return this.dcUserInfo;

}