Expert |
 |
Joined: Tue Sep 16, 2003 4:06 pm Posts: 318 Location: St. Petersburg, Russia
|
It is not really clear what do you want. If you need to find all objects which are linked to TestDatas with specific properties? If yes, try something like
select distinct myc
from MyClass as myc
join myc.test as data
where data.property=?
Where "MyClass" is the name of the class which have <many-to-one> mapping and "property" is the name of the TestData property you are looking for.
Btw, documentation shows alot of examples. See "9.3. Associations and joins"
|
|