Class EntityGraphQueryHint


  • public class EntityGraphQueryHint
    extends Object
    Encapsulates a JPA EntityGraph provided through a JPQL query hint. Converts the fetches into a list of AST FromElements. The logic is kept here as much as possible in order to make it easy to remove this in the future, once our AST is improved and this "hack" is no longer needed.
    • Constructor Detail

      • EntityGraphQueryHint

        public EntityGraphQueryHint​(String hintName,
                                    EntityGraph<?> originEntityGraph)
    • Method Detail

      • getHintName

        public String getHintName()
      • getOriginEntityGraph

        public EntityGraph<?> getOriginEntityGraph()
      • toFromElements

        public List<org.hibernate.hql.internal.ast.tree.FromElement> toFromElements​(org.hibernate.hql.internal.ast.tree.FromClause fromClause,
                                                                                    org.hibernate.hql.internal.ast.HqlSqlWalker walker)