Query w=em.createQuery("SELECT ar.authorId.firstName,
count(ar) FROM Article ar
WHERE ar.categoryId.categoryText=:
categoryText GROUP BY ar.authorId");
w.setParameter("categoryText", categoryText);
List list1=w.getResultList();
System.out.println(list1.toString());
Whats the wrong. i get [[Ljava.lang.Object;@60a19573, [Ljava.lang.Object;@44a085e5]
I want to print the query like "name:"+firtname+"Articles:"+count(ar)
Listand then implementtoString()in that particular type