title: how to map multiple rows in a single object?
body: <p>I want to map multiple rows into a single Object. Here is my resultSet</p>
  
  <pre><code>Id        Name       Marks
  1         A          34
  2         b          35
  </code></pre>
  
  <p>My class is something like this:</p>
  
  <pre><code>public class student {
      int id;
      String name;
      List &lt;Integer&gt; marks;
  }
  </code></pre>
  
  <p>I tried using RowMapper but that is for 1:1 relationship b/w row and object. Please suggest me the right approach to achive this?</p>
  
  <p>Thanks in advance.</p>