use of com.evolveum.midpoint.repo.sql.query2.hqm.RootHibernateQuery in project midpoint by Evolveum.
the class ItemPathResolver method addTextInfoJoin.
public String addTextInfoJoin(String currentHqlPath) throws QueryException {
RootHibernateQuery hibernateQuery = context.getHibernateQuery();
String joinedItemJpaName = RObject.F_TEXT_INFO_ITEMS;
String joinedItemFullPath = currentHqlPath + "." + joinedItemJpaName;
String joinedItemAlias = hibernateQuery.createAlias(joinedItemJpaName, false);
hibernateQuery.getPrimaryEntity().addJoin(new JoinSpecification(joinedItemAlias, joinedItemFullPath, null));
return joinedItemAlias;
}
use of com.evolveum.midpoint.repo.sql.query2.hqm.RootHibernateQuery in project midpoint by Evolveum.
the class QueryEngine2 method interpret.
public RQuery interpret(ObjectQuery query, Class<? extends Containerable> type, Collection<SelectorOptions<GetOperationOptions>> options, boolean countingObjects, Session session) throws QueryException {
QueryInterpreter2 interpreter = new QueryInterpreter2(repoConfiguration);
RootHibernateQuery hibernateQuery = interpreter.interpret(query, type, options, prismContext, countingObjects, session);
return new RQueryImpl(hibernateQuery.getAsHqlQuery(session), hibernateQuery);
}
Aggregations