Spring boot JPA @JoinColumn 关联级保

2018-10-08  本文已影响0人  大继

异常描述

org.springframework.orm.jpa.JpaObjectRetrievalFailureException: Unable to find cn.hitstone.contract.entity.ContractParticipateDetail with id c4877333-c2c8-4c49-b7e1-7c3941aedf54; nested exception is javax.persistence.EntityNotFoundException: Unable to find cn.hitstone.contract.entity.ContractParticipateDetail with id c4877333-c2c8-4c49-b7e1-7c3941aedf54

解决方案

先保存被关联数据即可

上一篇 下一篇

猜你喜欢

热点阅读