We're updating the issue view to help you get more done. 

ASTQueryTranslatorFactory.createQueryTranslator undocumented Parameter

Description

regarding:
https://docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/hql/internal/ast/ASTQueryTranslatorFactory.html

the API-Docs of Hibernate 5.2 of ASTQueryTranslatorFactory.createQueryTranslator do not document the last parameter:
EntityGraphQueryHint ...

We have the following sample (convert JP-QL to SQL):
String hqlQueryString = query.unwrap(org.hibernate.Query.class).getQueryString();
ASTQueryTranslatorFactory queryTranslatorFactory = new ASTQueryTranslatorFactory();
SessionImplementor hibernateSession = em.unwrap(SessionImplementor.class);
QueryTranslator queryTranslator = queryTranslatorFactory.createQueryTranslator("", hqlQueryString, java.util.Collections.EMPTY_MAP, hibernateSession.getFactory(), EntityGraphQueryHint.class.);
queryTranslator.compile(java.util.Collections.EMPTY_MAP, false);
String sqlQueryString = queryTranslator.getSQLString();

Please document this property so that it is clear how to set the last parameter

Environment

None

Status

Assignee

Unassigned

Reporter

Christian Stark

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.18

Priority

Minor