Joined: Thu Oct 30, 2003 5:38 pm Posts: 9 Location: CA
|
I have an Event that references Cause which contains a Set of Reason.
I can make a query string allowing a query of Event into the set of reasons by doing a join, but haven't figured out how to make this work using Criteria.
It seems that Criteria.createCriteria( String ) should work, but all of my attempts are failing so I'm obviously not doing it right.
Here's what I though would work:
criteria = session.createCriteria( Event.class );
criteria = criteria.createCriteria( "cause.reasons" );
. . .
Exception thrown says "...could not resolve property: cause.reasons"
Can someone point out the error of my ways? Thanks
|
|