Package org.hibernate.query.restriction
Interface Path<X,U>
- Type Parameters:
X
- The root entity typeU
- The leaf attribute type
Allows construction of a
Restriction
on a compound path.
A compound path is a sequence of attribute references rooted at the root entity type of the query.
SelectionSpecification.create(Book.class) .restrict(from(Book.class).to(Book_.publisher).to(Publisher_.name) .equalTo("Manning")) .fetch(from(Book.class).to(Book_.publisher)) .createQuery(session) .getResultList()A compound path-based restriction has the same semantics as the equivalent implicit join in HQL.
- Since:
- 7.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Restriction
<X> FetchParent
<?, ? extends U> static <X> Path
<X, X> getType()
default Restriction
<X> default Restriction
<X> notEqualTo
(U value) default Restriction
<X> default Restriction
<X> notNull()
default Restriction
<X> to
(SingularAttribute<? super U, V> attribute)
-
Method Details
-
path
-
getType
-
to
-
to
-
from
-
restrict
-
equalTo
-
notEqualTo
-
in
-
notIn
-
notNull
-
fetch
-