title: Ebean bridge between 3 table
body: <p>All.</p>
  
  <p>I have 3 table "Office", "Project" and "Employee"</p>
  
  <p><strong>Table Office many to many project</strong>:</p>
  
  <p>Office ebean model</p>
  
  <pre><code>@ManyToMany(mappedBy = "offices")
  public List&lt;Project&gt; projects = new ArrayList&lt;&gt;();
  </code></pre>
  
  <p>Project ebean model</p>
  
  <pre><code>@ManyToMany()
  @JoinTable(name = "project_office",
          joinColumns = @JoinColumn(name = "project_id", referencedColumnName = "id"),
          inverseJoinColumns = @JoinColumn(name = "office_id", referencedColumnName = "id")
  )
  </code></pre>
  
  <p><strong>Project many to many Employee</strong>:</p>
  
  <p>Project ebean model</p>
  
  <pre><code>@ManyToMany(mappedBy = "projects")
  public List&lt;Employee&gt; employees = new ArrayList&lt;&gt;();
  </code></pre>
  
  <p>Employee ebean model</p>
  
  <pre><code>@ManyToMany()
  @JoinTable(name = "employee_project",
          joinColumns = @JoinColumn(name = "employee_id", referencedColumnName = "id"),
          inverseJoinColumns = @JoinColumn(name = "project_id", referencedColumnName = "id")
  )
  </code></pre>
  
  <p>I want to have in the table employee_project column office_id. I do not understand how to do it. Help me, please</p>