Function « Criteria « JPA Q&A





1. JPA criteriaBuilder function throw NPE for group_concat    forum.hibernate.org

I am currently working on a project where we use jpa, hibernate and spring on a mysql db. I am getting a null pointer exception when i try to use mysql's Quote: group_concat in a criteriaBuilder function. Code: java.lang.NullPointerException at org.hibernate.util.ReflectHelper.getConstructor(ReflectHelper.java:343) at org.hibernate.hql.ast.tree.ConstructorNode.resolveConstructor(ConstructorNode.java:176) at org.hibernate.hql.ast.tree.ConstructorNode.prepare(ConstructorNode.java:150) at org.hibernate.hql.ast.HqlSqlWalker.processConstructor(HqlSqlWalker.java:1001) ...

2. Using ABS() function with Criteria    forum.hibernate.org

3. Using SQL Function with Criteria    forum.hibernate.org