How to use HINT_PASS_DISTINCT_THROUGH with Criteria API?

What’s the problem? Just set the hint on the javax.persistence.Query or javax.persistence.TypedQuery and it should work. If it doesn’t, please create an issue in the issue tracker(https://hibernate.atlassian.net) with a test case(hibernate-test-case-templates/JPAUnitTestCase.java at main · hibernate/hibernate-test-case-templates · GitHub) that reproduces the issue.