title: Converting Native Query Result To POJO : Error on boolean field
body: <p>I had a use case where I had to run a native query. I was able to run it successfully but when I am trying to convert the resultset to dto I am getting errors on boolean fields.
  Since I am using MySQL, the boolean value column is bit(1) in the database.</p>
  <p>Here is the code for the wrapper</p>
  <pre><code>public interface DownloadDetails {
     Boolean getBooleanField();  //Doesnot work but why?
     Integer getBooleanFieldAsInt(); //Works but needs explicit check to boolean in code 
     Long getLongField();
  }
  </code></pre>
  <p>Native Query :</p>
  <pre><code>@Query(nativeQuery = true, value = CUSTOM_QUERY)
  List&lt;DownloadDetails&gt; getDownloadDetails();
  </code></pre>
  <p>Now when I try to do something like <code>downloadDetails.getBooleanField()</code> it does not work and gives  an error as</p>
  <blockquote>
  <p>Projection type must be an interface!</p>
  </blockquote>
  <p>Anything which I am missing here?</p>