not-null property references a null or transient value

前端 未结 7 1073
离开以前
离开以前 2020-12-02 11:15

Facing trouble in saving parent/child object with hibernate. Any idea would be highly appreciated.

org.hibernate.PropertyValueException: not-null property re         


        
7条回答
  •  情话喂你
    2020-12-02 11:37

    Make that variable as transient.Your problem will get solved..

    @Column(name="emp_name", nullable=false, length=30)
        private transient String empName;
    

提交回复
热议问题