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

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

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

posted @ 2016-04-07 17:30  wandy丶  阅读(12694)  评论(0编辑  收藏  举报