title: jdbi BindBean userdefined property of the bean(nested object)
body: <p>I have a bean class </p>
  
  <pre><code>public class Group{string name;Type type; }
  </code></pre>
  
  <p>and another bean</p>
  
  <pre><code>public class Type{String name;}
  </code></pre>
  
  <p>Now, i want to bind group by using jdbi @BindBean</p>
  
  <pre><code>@SqlBatch("INSERT INTO (type_id,name) VALUES((SELECT id FROM type WHERE name=:m.type.name),:m.name)")
  @BatchChunkSize(100)
  int[] insertRewardGroup(@BindBean ("m") Set&lt;Group&gt; groups);
  </code></pre>
  
  <p>How can i bind the user defined object's property as member of the bean??</p>