Exception in thread

错误提示:
Exception in thread "main" org.hibernate.exception.ConstraintViolationException: could not insert: [com.Hibernate.Ppp]

解决方法:
修改,删除都正确 但是插入一条数据就报错!
是ID generator的事情 改成increment就没事了!

你可能感兴趣的:(thread,Hibernate)