Hi ,
I've got a domain class with other domain objects a snippet of which is ...
Code:
private Address address;
private PropertyType propertyType;
private SaleType saleType;
private Location location;
....
I would like to be able to execute some sort of query to retrieve properties as follows...
Code:
select p from property p, location l, propertytype pt, address a, saletype st where p.location.locationId = l.locationId and l.locationName = 'some location' and p.address.addressId = a.addressId and p.saleType.saleTypeId = st.saleTypeId and p.propertyType.propertyTypeId = pt.propertyTypeId
I've tried all sorts of combinations but only ever seem to get 1 property row back. Can anyone give me any pointers or advice.
thanks in advance
chris[/code]