在使用Hibernate save()方法的时候 报错: org.hibernate.exception.ConstraintViolationException:could not perform addBath

org.hibernate.exception.ConstraintViolationException:could not perform addBath

  错误可能原因:实体属性的值与数据库字段类型相悖(如:数据库中不允许为null,单数传值为null)

原文地址:https://www.cnblogs.com/nww57/p/5364531.html