gavin wrote:
Yeah, AFAICT, from-clause subselects don't make sense in an OO query language, so you would be better to just use direct JDBC.
Ok, I implemented the query using the createSQLQuery() method and works fine. However I'm a little bit disappointed I can't use HQL: using regular SQL my query could become vendor dependent :-(
I don't know much about OO query language, so I don't catch your observation. In SQL such queries are often useful for performance reason, when you want to manipulate columns from different tables in a single select and would be too expensive to join all the tables. You mean that in OO queries this situation never occurs, or is there a different solution?
Dario