Hello !
Thanks, it was the way to go.
It's funny because my integration test, which was already coded against the Dao method, worked fine.
This is how my Dao method looks like:
Code:
@SuppressWarnings("unchecked")
@Override
public List<Object[]> findCountsByBrowser() {
Query query = getSession().createQuery("select count(*) as count, visitorBrowser from StatisticsVisit group by visitorBrowser order by visitorBrowser");
final List<Object[]> resultList = (List<Object[]>) query.list();
return resultList;
}
I was almost there, I only needed to add the Object[] type to the collection.
Now the question is, is this the way to go in Hibernate when encountering this issue ?
Maybe some day some one who stumbles by will tell us :-)
Thanks for your hint anyway.