title: One-To-Many Relationship with Join Table
body: <p>I have a one-to-many relationship modeled using join table:</p>
  
  <pre><code>create table t1 (id int primary key, name varchar(10) /*...*/);
  create table t2 (id int primary key, name varchar(10) /*...*/);
  create table t1_t2 (t1_id int, t2_id int, primary key (t1, t2));
  </code></pre>
  
  <p>The tables are supposed to model the relationship of one t1 to many t2. What is the right way to model these tables using JPA?</p>