Interface Path<X,U>

Type Parameters:
X - The root entity type
U - The leaf attribute type

@Incubating public interface Path<X,U>
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: