美文网首页
Spring boot JPA @JoinColumn 关联级保

Spring boot JPA @JoinColumn 关联级保

作者: 大继 | 来源:发表于2018-10-08 01:49 被阅读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
    
    

    解决方案

    先保存被关联数据即可

    相关文章

      网友评论

          本文标题:Spring boot JPA @JoinColumn 关联级保

          本文链接:https://www.haomeiwen.com/subject/vqfdaftx.html