Hi @Vlad Mihalcea,
A @ManyToMany association implies a link table and 2 Foreign Keys linking to 2 parent tables.
1. @ManyToAny does accept a link table. 2. The reason why @ManyToAny can only have 1 foreign key is that the natural of the "any" concept can't have foreign keys. So it can have only 1 foreign key on the non-any side. What I want to say in this issue is that: I can literally create a many-to-many mapping between an "any" entity and a non-any entity. Doesn't it make it acting like @ManyToMany? |