# Hibernate 6, org.hibernate.jpa.QueryHints.HINT\_PASS\_DISTINCT\_THROUGH has been removed?

**URL:** <https://discourse.hibernate.org/t/hibernate-6-org-hibernate-jpa-queryhints-hint-pass-distinct-through-has-been-removed/7131>\
**Category:** Hibernate ORM\
**Created:** [January 11, 2023, 10:04pm UTC](https://discourse.hibernate.org/t/hibernate-6-org-hibernate-jpa-queryhints-hint-pass-distinct-through-has-been-removed/7131 "2023-01-11T22:04:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Jon](https://discourse.hibernate.org/u/Jon)\
**Post date:** [January 11, 2023, 10:04pm UTC](https://discourse.hibernate.org/t/hibernate-6-org-hibernate-jpa-queryhints-hint-pass-distinct-through-has-been-removed/7131/1 "2023-01-11T22:04:43Z")

</div>

Hi,

We use the following constant with Hibernate 5 and this one does not seem to exist anymore in version 6. Is there a replacement?

```auto
org.hibernate.jpa.QueryHints.HINT_PASS_DISTINCT_THROUGH

```

Regards

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [January 12, 2023, 9:24am UTC](https://discourse.hibernate.org/t/hibernate-6-org-hibernate-jpa-queryhints-hint-pass-distinct-through-has-been-removed/7131/2 "2023-01-12T09:24:43Z")

</div>

It’s part of the migration guide: [hibernate-orm/migration-guide.adoc at 6.0 · hibernate/hibernate-orm · GitHub](https://github.com/hibernate/hibernate-orm/blob/6.0/migration-guide.adoc#distinct)

---

<div class="post-metadata">

**Author:** ![Jon](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Jon](https://discourse.hibernate.org/u/Jon)\
**Post date:** [January 12, 2023, 2:04pm UTC](https://discourse.hibernate.org/t/hibernate-6-org-hibernate-jpa-queryhints-hint-pass-distinct-through-has-been-removed/7131/3 "2023-01-12T14:04:14Z")

</div>

Thanks for your response!
