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 TypeMethodDescriptiondefaultRestriction<X>FetchParent<?,? extendsU> static <X> Path<X,X> getType()defaultRestriction<X>defaultRestriction<X>notEqualTo(U value) defaultRestriction<X>defaultRestriction<X>notNull()defaultRestriction<X>to(SingularAttribute<? superU, V> attribute)
Method Details
path
getType
to
to
from
restrict
equalTo
notEqualTo
in
notIn
notNull
fetch