Error applying BeanValidation relational constraints
解决
在hibernate.hbm.xml中加上
<property name="javax.persistence.validation.mode">none</property>
还有在一次测试的时候,调用sesssion.update()方法出错,后来
知道,表里面还没有这个数据的时候只能先session.save(),update方法是表里面已经存在,然后更新
Error applying BeanValidation relational constraints
解决
在hibernate.hbm.xml中加上
<property name="javax.persistence.validation.mode">none</property>
还有在一次测试的时候,调用sesssion.update()方法出错,后来
知道,表里面还没有这个数据的时候只能先session.save(),update方法是表里面已经存在,然后更新