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
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;