Joined: Fri May 18, 2007 1:41 pm Posts: 8
|
I have a class that has a user type. The user type consists of four columns, one of which is a "ChangedDate".
I want to write a query that returns instances of my class but add "where" clauses related to my user type's columns.
I tried writing these queries but none worked:
select c from MyClass c join c.MyType t where t.ChangedDate >= ?
select c from MyClass c where c.MyType.ChangedDate >= ?
select c from MyClass c where c.ChangedDate >= ?
All give "could not resolve property : ChangedDate" errors. What is the correct way to write this query? Is it possible?
Thanks.
|
|