'Add an indexing hint for the given entity or selectable to
this :class:`.Query`.
Functionality is passed straight through to
:meth:`~sqlalchemy.sql.expression.Select.with_hint`,
with the addition that ``selectable`` can be a
:class:`.Table`, :class:`.Alias`, or ORM entity / mapped class
/etc.'

@_generative()
def with_hint(self, selectable, text, dialect_name='*'):

    selectable = inspect(selectable).selectable
    self._with_hints += ((selectable, text, dialect_name),)
