gavin, before anything, i just want to thanks for all your effort on Hibernate. The quality of the product and the level of support is really unsurpassed by anything i've ever seen.
back to your question: yes, that does work.
however, the desired result is to get the
link information along with the associated
bar entity object.
i.e.
Quote:
SELECT link, bar FROM ...
or even
Quote:
SELECT link FROM ...
since bar is already a property of link.
The error that occurs is:
Code:
net.sf.hibernate.QueryException: could not resolve property: id
at net.sf.hibernate.persister.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:33)
at net.sf.hibernate.collection.CollectionPersister.toType(CollectionPersister.java:943)
at net.sf.hibernate.hql.PathExpressionParser.getPropertyType(PathExpressionParser.java:242)
at net.sf.hibernate.hql.PathExpressionParser.end(PathExpressionParser.java:281)
at net.sf.hibernate.hql.SelectPathExpressionParser.end(SelectPathExpressionParser.java:14)
...
Also, looks like AbstractPropertyMapping.java has been deleted from cvs since the release 2.1b4...?