2

Basically I want to use the code this answer gives https://stackoverflow.com/a/19516794 for my project, but compiler is giving me errors. Documentation mentions that CriteriaQueryCompiler is a temporary implementation.

NOTE : This is a temporary implementation which simply translates the criteria query into a JPAQL query string. A better, long-term solution is being implemented as part of refactoring the JPAQL/HQL translator.

I'm using Hibernate 4.3.9. Is there an analogous implementation of CriteriaQueryCompiler?

Community
  • 1
  • 1
nmeln
  • 495
  • 5
  • 17

1 Answers1

2

use this import,

import org.hibernate.jpa.criteria.compile.RenderingContext;

and then change CriteriaQueryCompiler.RenderingContext to -> RenderingContext in the function parameters.