title: Returned object from Spring Data Jpa query has null values
body: <p>I'm trying to get object of custom type from JPA Repository</p>
  
  <p><strong><em>VisitRepository.java</em></strong></p>
  
  <pre><code>@Repository
  public interface VisitRepository extends JpaRepository&lt;Visit, Long&gt;, JpaSpecificationExecutor&lt;Visit&gt; {
      @Query(value = "select client_id , count(*) from visit  where (DATE(jhi_date) between :startDate and :endDate) group by client_id",nativeQuery = true)
      List&lt;IIntegerReportData&gt; findByDate(@Param("startDate") String startDate, @Param("endDate") String endDate);
  </code></pre>
  
  <p><strong><em>IIntegerReportData.java</em></strong></p>
  
  <pre><code>package com.mycompany.hiptest.repository;
  
  public interface IIntegerReportData {
      Long getId();
      Integer getValue();
  }
  </code></pre>
  
  <p><strong><em>ClientRating.java</em></strong></p>
  
  <pre><code> public List&lt;ClientsRatingDTO&gt; findAllSorted(String startDate, String endDate, Long fieldNum) {
          List&lt;IIntegerReportData&gt; visitReport = visitRepository.findByDate(startDate, endDate);   
          log.debug("visitReport:" + visitReport.size());
  
          for (IIntegerReportData visit : visitReport
          ) {
              log.debug("value: " + visit.getValue());
            }
  </code></pre>
  
  <p>In debug i get visitReport.size() = 27 (that is correct records count), but<br>
  visit.getValue() is NULL for each rows, although there are not null values in this field for each rows.
  What's wrong?</p>