title: using spring jdbc template for populating results
body: <p>I have two classes</p>
  
  <pre><code>class Deptartment{
    int deptid,
    String deptname;
    List&lt;Employee&gt; employees;
  
  }
  
  class Employee{
  
   int empid;
   String empname;
   int deptid;
  
  }
  
  Table: 
  Department:
  
      deptid,deptname
  
  Employee
  
      empid,empname,deptid
  
  Query: select * from deptartment d,employee e where  d.deptid= e.deptid
  </code></pre>
  
  <p>Now how can i populate Department object using spring jdbc template?</p>