org.springframework.

发布时间:2019-09-20 07:33:23编辑:auto阅读(1873)

     错误报告: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;

    }

关键字