title: Is it possible to map a field in an Entity without defining any association?
body: <p>I've got the following schema in DB (simplified)</p>
  
  <pre><code>MainTable(
      ID primary key
      SOMEFIELD
      CODE_FK1 -- references OtherTable1 CODE (without declared foreign key)
      CODE_FK2 -- references OtherTable2 CODE (without declared foreign key)
      ... Other fields used
  )
  
  OtherTable1(
      CODE primary key
      LABEL
      ... other fields not used
  )
  
  OtherTable2(
      CODE primary key
      LABEL
      ... other fields not used
  )
  </code></pre>
  
  <p>I'm asking if there is any way to define my Entity for main table in order to use directly labels from my other tables, i.e without defining entities for these other table.</p>
  
  <p>I cannot change the DB schema, which is really awful (there are labels/code couples everywhere, defined in multiples tables).
  And If it was possible, this solution would allow to keep my code simple, since I don't really need these other entities.</p>
  
  <p>I guess it would result something like that:</p>
  
  <pre><code>@Entity
  public class MainEntity{
      @Id
      private Integer ID;
  
      @Column(name="SOMEFIELD")
      private String SomeField;
  
      @SomeAnnotation to Join CODE_FK_1 with OtherTable1.CODE
      @SomeAnnotation like @Column(name="LABEL", table="OtherTable1")
      private String Label1;
  
      @SomeAnnotation to Join CODE_FK_1 with OtherTable1.CODE
      @SomeAnnotation like @Column(name="LABEL", table="OtherTable1")
      private String Label1;
  
  }
  </code></pre>
  
  <p>Thanks by advance for your help!</p>