nmeln
nmeln

Reputation: 495

What was Hibernate's CriteriaQueryCompiler replaced with?

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?

Upvotes: 2

Views: 281

Answers (1)

Volodymyr Nazarkevych
Volodymyr Nazarkevych

Reputation: 126

use this import,

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

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

Upvotes: 2

Related Questions