Search code examples
jpa-2.0hibernate-mappinghibernate-onetomany

hibernate jpa join two table with another table


I have two table A and B

Table A:

ID_A

name

table B

ID_B

name

I joined both by a third table C table with their primary key

table C

ID_C

ID_A

ID_B

I'd like to know this relationship in jpa mapping to retrieve the list of object B inside object A

thank you,


Solution

  • I have find a good example here http://viralpatel.net/blogs/hibernate-many-to-many-annotation-mapping-tutorial/