Hibernate Team |
|
Joined: Tue Aug 26, 2003 7:19 pm Posts: 2364 Location: Brisbane, Australia
|
Try it yourself.
SELECT t1 FROM Table1 t1, Table t2 WHERE t1.column = t2.column
If there was a relationship defined in the mapping (which is much better).
SELECT t1 FROM Table1 t1 join t1.table2
The alias in the select clause defines what is returned in the list, eg, the complete table1 objects
As always its best to have a play and see what you get. The hibernate console is a great tool for doing adhock queries. Give it a try.
|
|