title: JPA @ManyToOne Two Tables
body: <p>I have two table Student and Student_Pseudo. <br>
  A Pseudo can be attributed for one or more Student. <br></p>
  
  <p>Student contains </p>
  
  <pre><code>* Student_code 
  * Student_login 
  </code></pre>
  
  <p>Student_Pseudo contains </p>
  
  <pre><code>* Stu_code 
  * Pseudo 
  </code></pre>
  
  <p>Stu_code is a foreign key of Student_code <br></p>
  
  <p>I want to get Pseudo in Student Entity using @ManyToOne relation and it's not working <br></p>
  
  <pre><code>@ManyToOne(optional = false)
      @JoinColumn(name="STU_CODE", referencedColumnName="STUDENT_CODE", nullable=false)
      private Pseudo pseudo;
  </code></pre>
  
  <p>The Pseudo is always null when I get Students !!!</p>