title: BaseRepository Query Entity List Return List of Object Array
body: <p>I am using Spring JPA framework with Implementation of Hibernate.
  I declared a query in A BaseRepository like below:</p>
  
  <pre><code>@NoRepositoryBean
  public interface BaseRepository&lt;T, ID extends Serializable&gt; extends PagingAndSortingRepository&lt;T, ID&gt;, QueryDslPredicateExecutor&lt;T&gt; {
      @Query("select e.id,e.name from #{#entityName} e where e.state=1 and e.name like CONCAT(:name,'%')")
      List&lt;T&gt; findIdAndNameByNameStartingWith(@Param("name") String name);
  }
  </code></pre>
  
  <p>And use in a Controller</p>
  
  <pre><code>@RequestMapping("/list/byName")
      public HttpApiResponse findAllByNameLike(@RequestParam(defaultValue = "") String name) {
          List&lt;Platform&gt; platforms = platformRepository.findIdAndNameByNameStartingWith(name);
          return HttpApiResponse.doSuccess(platforms);
      }
  </code></pre>
  
  <p>But When i Debug I found <code>findIdAndNameByNameStartingWith()</code> return List like [['hotel',1],['travel',2]] rather than <code>List&lt;Platform&gt;</code>. Could anyone give me some advice many thanks!</p>