Relative Content

Tag Archive for javaspring-data-jpa

Two Foreign Keys Relation To One Primary Key In Another Table in Spring Data JPA

I am using Spring Data JPA and Hibernate to create and map two tables PROCESS and STATEMENT, the STATEMENT table has two FK referring to id from the PROCESS table and I want to have a relationship between these two tables and from Process entity I want to have ability to find associated Statement records when inquiry tables,