title: Entity Manager returning null for joined columns
body: <p>I have three tables , a main table MAIN_TB with foreign keys to table TCHARS and TSTATUSES, when i persist MAIN_TB, re-query and display the saved record, the joined columns(tchars from TCHARS and t_status from TSTATUSES) are null but data is saved. what could i be missing? </p>
  
  <p>Table MAIN_TB</p>
  
  <pre><code>@JoinColumn(name = "T_STATUS", referencedColumnName = "T_STATUS")
  @ManyToOne
  private Tstatuses tStatus;
  
  @JoinColumn(name = "T_CHAR", referencedColumnName = "T_CHAR")
  @ManyToOne
  private Tchars tChar;
  </code></pre>
  
  <p>Table TCHARS</p>
  
  <pre><code>@OneToMany(mappedBy = "tChar")
  private Collection&lt;MainTb&gt; mainTbCollection;
  </code></pre>
  
  <p>Table TSTATUSES</p>
  
  <pre><code>@OneToMany(mappedBy = "tStatus")
  private Collection&lt;MainTb&gt; mainTbCollection;
  </code></pre>
  
  <p>Code</p>
  
  <pre><code> public void saveMainTb(){
       MainTb mainTb = new MainTb();
       Tchars tchars = new Tchars();
       Tstatuses tstatuses = new Tstatuses();
  
       tchars.setTChar(new Short("1"));
       mainTb.setTChar(tchars);
  
       tstatuses.setTStatus(new Short("1"));
       mainTb.setTStatus(tstatuses);
  
       mainTb.setTName("test");
       em.persist(mainTb);
  
   }
  </code></pre>
  
  <p>Result</p>
  
  <pre><code> ![Result][1]
  </code></pre>
  
  <p>Any help would be appreciated</p>