After reading further into the forums it seems 'mread' had a similar problem of querying composite elements:
http://forum.hibernate.org/viewtopic.php?t=924854&highlight=composite+element+query+type
And as a result of this forum post, the following feature request has been posted:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-513
I receive the same error of
'net.sf.hibernate.QueryException: could not resolve property: id of:' when trying to execute the following query in a vain attempt to retrieve my desired type composite element type - C:
select <C shorthand> from A as <A shorthand> join A.C as <C shorthand> where <C shorthand>.parameter1 = :<test condition>
Now I really don't want to have to alter my project's code design to work around Hibernate limitations, so are there any workarounds...or maybe I'm missing the obvious solution? Could a session query work directly on the set of C?
Can anybody please help me?