Is it possible with Criteria API to access a given alias via the Root object?
I have defined a Join and gave it the alias "lead":
final Root<Project> project = cq.from(Project.class);
project.join(Project_.lead).alias("lead");
How can i gain access to that Join given just the Root and the alias (because Root is the only query handle, that I pass around)?
I've already tried to rebuild the Join by navigating again, but that seems to break the SQL statement:
project.join(Project_.lead) // cannot do this
Thanks