Skip to content

Instantly share code, notes, and snippets.

@Eugeny
Created May 6, 2011 10:14
Show Gist options
  • Save Eugeny/958724 to your computer and use it in GitHub Desktop.
Save Eugeny/958724 to your computer and use it in GitHub Desktop.
Root<Student> studentr = cq.from(Student.class);
cq.select(studentr);
cq.where(cb.like(studentr.get(Student_.groupNumber).as(String.class), like));
cq.groupBy(studentr.get(Student_.groupNumber));
cq.distinct(true);
13:11:34,499 ERROR PARSER:56 - line 1:136: expecting CLOSE, found '('
13:11:34,546 WARN HqlParser:249 - processEqualityExpression() : No expression to process!
java.lang.NullPointerException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment