You can write your query in both styles in SQL. But if you have no association between the classes that are "joined" in HQL, you have to use a theta style "join".
HQL joins are not SLQ joins and yes, if you like, you can see them just as a shortcut "if the parameters have the same name", which is not the whole truth, but sufficent until you are more familiar with HQL. Don't think in tables and columns, think in classes, properties and associations.
_________________ JAVA PERSISTENCE WITH HIBERNATE http://jpwh.org Get the book, training, and consulting for your Hibernate team.
|