Allow NamedQuery to set hint QueryHints.PASS_DISTINCT_THROUGH

Description

QueryHints.PASS_DISTINCT_THROUGH doesn't work when specified in @NamedQuery hints.

Example:

I've verified it's working fine in my environment when specified with EntityManager.createNamedQuery.setHint.

Environment

None

Assignee

Unassigned

Reporter

John Schneider

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Minor
Configure