title: Panache Query with distinct returns PanacheQuery<Entity> and not ArrayList<String>
body: <p>I'm trying to get a distinct result of one Column from my Database with Panache+Hibernate. Normally in Hibernate you would get an <code>ArrayList&lt;String&gt;</code> back from the query.</p>
  
  <pre><code>List&lt;String&gt; list = repo
              .find("select DISTINCT(a.country) from TMdBrandAll a order by a.country")
              .page(Page.ofSize(1000)).list();
  </code></pre>
  
  <p>But if I try this Approach with Panache I get the ErrorMessage
  <a href="https://i.stack.imgur.com/Lk0uy.png" rel="nofollow noreferrer">Comiler Error Message</a></p>
  
  <p>If I change the variable "list" to the returnType <code>List&lt;TMdBrandAll&gt;</code> the compile error is gone.</p>
  
  <pre><code>List&lt;TMdBrandAll&gt; list = brandAllRepo
              .find("select DISTINCT(a.country) from TMdBrandAll a order by a.country")
              .page(Page.ofSize(1000)).list();
  </code></pre>
  
  <p>When I now inspect the executed code in the debugger I get.
  <a href="https://i.stack.imgur.com/Ff88E.png" rel="nofollow noreferrer">Debugger output</a></p>
  
  <p>How can I tell Panache that the outcome of the query will be an <code>ArrayList&lt;Strings&gt;</code> and not an <code>ArrayList&lt;PanacheEntity&gt;</code>?</p>
  
  <p>Thanks for your answers</p>
  
  <p>EDIT:
  Code of Repo:</p>
  
  <pre><code>@RequestScoped
  @Transactional
  public class BrandAllRepo implements PanacheRepositoryBase&lt;TMdBrandAll, Long&gt; {
  
  
      public void updateBrand(String brandName, String soundexCode, String countryCode, Long active, Long isNew, String user, Long brandAllId) {
  
          update("set brandName = ?1, soundexCode = soundex(pkg_util.f_escape_special_char1(?2))," +
                  " countryCode = ?3, active = ?4, isNew = ?5, modifiedAt = sysdate, modified_by = ?6 where brandAllId = ?7",
              brandName, soundexCode, countryCode, active, isNew, user, brandAllId);
  
      }
  
  }
  </code></pre>
  
  <p>Working Code from Repo:</p>
  
  <pre><code>@Inject
  EntityManager em;
  
  public List&lt;String&gt; findCountries() {
      List&lt;String&gt; qres = em
          .createQuery("select DISTINCT(a.countryCode) from TMdBrandAll a order by a.countryCode", String.class)
          .getResultList();
  
      return new ArrayList&lt;&gt;(qres);
  }
  </code></pre>
  
  <p>With injected EntityManager and standard hibernate query it works.</p>