Unable to find column with logical name

前端 未结 1 472
借酒劲吻你
借酒劲吻你 2021-01-25 12:50

I have 5 tables every table has relation one to many with the next table
Project_t -> project_level1_t -> project_level2_t -> project_level3_t -> project_level4_t
I

相关标签:
1条回答
  • 2021-01-25 13:26

    In ProjectLevel2Repository you have a mapping towards ProjectRepository using a @JoinColumn named projectlevel1id which doesn't exist. From what you describe, this should be mapped to ProjectLevel1Repository

    @ManyToOne
    @JoinColumn(name="projectlevel1id", referencedColumnName = "projectlevel1id")
    @JsonIgnore
    private ProjectLevel1Repository projectlevel1;
    
    0 讨论(0)
提交回复
热议问题