title: Course has many students and many students belong to one course. How to find to which course a particular student belong?
body: <p>there is a one to many unidirectional mapping from course to students</p>
  <pre><code>@Entity
  Course {
  @OnetoMany
  List&lt;Student&gt; students;
  }
  </code></pre>
  <pre><code>@Entity
  Student {
  name;
  age;
  }
  </code></pre>
  <p>the database schema looks like
  Course
  id name duration fee</p>
  <p>Student
  rollno name age course_id</p>
  <p>I am using Jpa repository for getting.</p>
  <p>Can anyone please tell how to tell in which course a particular student belong to? Please note that i am not using bi-directioal mapping so student entity class has no reference to course.</p>