JPA Secondary Table Issue
- by Smithers
I have a three tables: User, Course, and Test.
Course has a User foreign key and Test has a Course foreign key. I am having trouble mapping the Test collection for each User since I need an intermediary step from User - Course - Test. I am trying to use a SecondaryTable since the User key for the Test is its associated Course row.
Am I on the right track using SecondaryTable or is there a way to use a JoinTable without the inverseJoinColumn?