JPA Secondary Table Issue

Posted by Smithers on Stack Overflow See other posts from Stack Overflow or by Smithers
Published on 2010-01-31T20:04:11Z Indexed on 2010/05/01 0:47 UTC
Read the original article Hit count: 329

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about jpa

Related posts about java