title: JPA OUTER JOIN without relation
body: <p>I need make <code>OUTER JOIN</code> of two entities in JPA (saying master, detail), but the problem that at the entity level there are no relations (and I don't want add it).</p>
  
  <pre class="lang-java prettyprint-override"><code>@Entity
  class Master
  {
      @Column(name="altKey")
      Integer altKey;
  }
  
  @Entity
  class Detail
  {
      @Column(name="altKeyRef")
      @Basic (optional = true)
      Integer altKeyRef;
  }
  </code></pre>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT m, d FROM Master m OUTER JOIN ????? d.altKeyRef = m.altKey
  </code></pre>