我正在为一个已经开发的spring boot web应用程序添加一个功能。具有子实体的主实体是记录。/ Save the record first, recordId is required on hardwareItems
// TODO: investigate SpringHibernate/JPA rules - is there a way to save parent before children to avoid a null recordIdbuild
by: java.sql.SQLException: Field 'id' doesn't have a default value 我的application.properties看起来像这样: spring.jpa.database-platform:3306/kotlinspring.datasource.password=
spring.datasource.driver-class-name
我正在用mysql用spring编写一个简单的应用程序。integer not null auto_increment, primary key (article_id)错误(SpringHibernateJpaPersistenceProvider.java:57) [spring-orm-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.orm.jpa.LocalC