I am migrating spring framework from 5.* to 6. I am getting error : hql is missing in ‘org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory’. How to fix this?
using imports in my project :
import org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory;
import org.hibernate.hql.spi.QueryTranslator;
import org.hibernate.hql.spi.QueryTranslatorFactory;
Error is hql package is missing in ‘org.hibernate.hql’
using imports in my project :
import org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory;
import org.hibernate.hql.spi.QueryTranslator;
import org.hibernate.hql.spi.QueryTranslatorFactory;
Error is hql package is missing in ‘org.hibernate.hql’
I also tried to have an access to this, but I’m already on hibernate 6. I need the query conversion, because I have a special query result counter logic (an estimator which falls back to the precise count if below a threshold) made in SQL, but I need the actual SQL for it and a HQL/JPQL doesn’t work.