title: how can I iclude an inner list in a RowMapper class
body: <p>I have a question about Spring JDBC RowMapper organization.</p>
  
  <p>Let's say I have a table <code>a</code> with fields <code>id</code> and <code>name</code>, table <code>a_b</code> and table <code>b</code>.</p>
  
  <pre><code>a
  id integer
  name character varying (16)
  
  b
  id integer
  name character varying (16)
  
  a_b
  a_b_id integer
  aid integer
  bid integer
  </code></pre>
  
  <p>The Class structure is not so symmetrical:</p>
  
  <pre><code>class A{
  int id;
  String name;
  List&lt;B&gt; bs;
  }
  
  class B{
  int id;
  String name;
  }
  </code></pre>
  
  <p>I want to construct a RowMapper class for a class A. The start code looks like:</p>
  
  <pre><code>class AMapper implements RowMapper&lt;A&gt;{
       public A mapRow(ResultSet rs, int num){
          A a = new A();
          a.setId(rs.getInt("id"));
          a.setName(rs.getString("name"));
          return a;
       }
  }
  </code></pre>
  
  <p>How can I also map the list of <code>b</code>s? Is there any way to get it without in-mapper sql query?</p>