我正在尝试为我的配置文件模型创建一些fixture,但每次在更新后尝试“再次”保存它时,我都会收到这样的消息:nested exception is org.hibernate.exception.ConstraintViolationExceptionspokenLanguages"})@AllArgsConstructor
在本地运行测试时,我看到ConstraintViolationException%s。然而,当实际部署和测试我的应用程序时,我看到了DataIntegrityViolationException。根据此,出现DataIntegrityViolationException错误的原因是:If you execute Hibernate calls via the HibernateTemplate。
我正在使用:我的application.properties
spring.jpa.generate-ddl[23505-193]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute