diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/QueryHints.java b/hibernate-core/src/main/java/org/hibernate/annotations/QueryHints.java index cd20e7f815..7ad7a9809c 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/QueryHints.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/QueryHints.java @@ -117,15 +117,6 @@ public class QueryHints { */ public static final String FOLLOW_ON_LOCKING = "hibernate.query.followOnLocking"; - /** - * Hint to enable/disable the pass-distinct-through mechanism. - * A value of {@code true} enables pass-distinct-through, whereas a value of {@code false} disables it. - * When the pass-distinct-through is disabled, the HQL and JPQL distinct clause is no longer passed to the SQL statement. - * - * @since 5.2 - */ - public static final String PASS_DISTINCT_THROUGH = "hibernate.query.passDistinctThrough"; - /** * Hint for specifying query spaces to be applied to a native (SQL) query. * diff --git a/hibernate-core/src/main/java/org/hibernate/jpa/QueryHints.java b/hibernate-core/src/main/java/org/hibernate/jpa/QueryHints.java index de7db4ce1d..c9e72f78df 100644 --- a/hibernate-core/src/main/java/org/hibernate/jpa/QueryHints.java +++ b/hibernate-core/src/main/java/org/hibernate/jpa/QueryHints.java @@ -20,7 +20,6 @@ import static org.hibernate.annotations.QueryHints.FLUSH_MODE; import static org.hibernate.annotations.QueryHints.FOLLOW_ON_LOCKING; import static org.hibernate.annotations.QueryHints.NATIVE_LOCKMODE; import static org.hibernate.annotations.QueryHints.NATIVE_SPACES; -import static org.hibernate.annotations.QueryHints.PASS_DISTINCT_THROUGH; import static org.hibernate.annotations.QueryHints.READ_ONLY; import static org.hibernate.annotations.QueryHints.TIMEOUT_HIBERNATE; import static org.hibernate.annotations.QueryHints.TIMEOUT_JAKARTA_JPA; @@ -136,8 +135,6 @@ public class QueryHints { public static final String HINT_FOLLOW_ON_LOCKING = FOLLOW_ON_LOCKING; - public static final String HINT_PASS_DISTINCT_THROUGH = PASS_DISTINCT_THROUGH; - /** * See {@link org.hibernate.annotations.QueryHints#NATIVE_SPACES} */