title: JDBI, retrieve data with sql query into customized object(constructor) instead of Map
body: <p>So when we use JDBI to query from database, it is getting it into a <code>Map&lt;String, Object&gt;</code> type.</p>
  
  <p>I want to get it as my customized object (constructor) instead of <code>Map&lt;String, Object&gt;</code>.</p>
  
  <pre><code>DBI dbi = establishConnection(url, userName, passWord);
  Handle handle = dbi.open();
  List&lt;Map&lt;String, Object&gt;&gt; rs = handle.select("select * from sometable");
  </code></pre>
  
  <p>Instead I want to use:</p>
  
  <pre><code>List&lt;customizedObject&gt; rs = handle.select("select * from sometable");
  </code></pre>
  
  <p>Where <code>customizedObject</code> class is an object that contains all the column properties with it.</p>
  
  <p>Is there any way to do this? I found some relative documentation, but I cannot really understand the implementation.</p>
  
  <p><a href="http://jdbi.org/sql_object_api_queries/" rel="nofollow noreferrer">http://jdbi.org/sql_object_api_queries/</a> </p>