Here's the situation:
I have a datatype C that has a one-to-many reference to Datatype P. Datatype P has an optional R reference (one to one).
My attempted query was as follows (it was a count, but it will also be used to pull data)
FROM C WHERE ... AND P.R.rProperty LIKE 'BLAH%';
I get a
org.hibernate.QueryException: illegal attempt to dereference collection
[C.C_SEQUENCE_NUMBER.P] with element property reference [R] [select count(*) FROM C a WHERE a.DATE_FIELD >= ? AND a.DATE_FIELD <= ? AND a.P.R.rProperty LIKE ?]
Any hints/suggestions?