Function « Criteria « JPA Q&A

1. JPA criteriaBuilder function throw NPE for group_concat

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( at org.hibernate.hql.ast.tree.ConstructorNode.resolveConstructor( at org.hibernate.hql.ast.tree.ConstructorNode.prepare( at org.hibernate.hql.ast.HqlSqlWalker.processConstructor( ...

2. Using ABS() function with Criteria

3. Using SQL Function with Criteria