title: How to represent a 3-way relation with JPA?
body: <p>A user may have several labels, and links. Then, a user associates a label (or more) to a link. How does one represent the later relationship?</p>
  
  <p>A solution could be a many-to-many relationship btw user and link with the optional attribute label. <a href="http://en.wikibooks.org/wiki/Java_Persistence/ManyToMany#Mapping_a_Join_Table_with_Additional_Columns" rel="nofollow noreferrer">http://en.wikibooks.org/wiki/Java_Persistence/ManyToMany#Mapping_a_Join_Table_with_Additional_Columns</a>
  In this case the relationship btw user and label may better be 'virtual'.</p>
  
  <p>Any alternative I'm not seeing?</p>
  
  <p>PS: I've used google bookmarks terminology, as it matches my case quite well.</p>