HQL Query Not Running
- by Sarang
select new UpdateCountDataBean(count(elements(am.actionId)) as noOfUpdates, am.pname as name) from ActivityMaster am group by am.pname
The UpdateCountDataBean is created by me while the second class i.e. ActivityMaster is POJO class.
java.lang.NullPointerException
at org.hibernate.hql.ast.tree.MethodNode.handleElements(MethodNode.java:158)
…