如果我只是使用实体表&通过@RequestBody直接UserEntity获取数据并解析到存储库,那么App工作得很好,但是当我试图将数据从DTO表映射到UserEntity时,它给了我一个错误: "not-nullproperty references a null or transient value" 任何帮助都将不胜感激。
Hibernate版本- 5.2.18
Hibernate: create table User (userId numeric(19,0) not null, primary key (userId)Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-nullproperty references a null or transient value : c