I have a JPA request of the form:
SELECT category, count(*) AS c FROM ...
I know that if the query just returns a single column, I can do something like:
List<Article> articles = query.getResultList();
However, how do I access the results when there are two or more columns, as in the above example?
source
share