user1 wrote:
For the objects I have - where object T has set of Objects B (and B is a subclass of A), What I want to acomplish is - I want to return all objects A only if I find exactly one object in the Set of Objects B (on the object A) which matches my condition of xx.property1=:value1. Can you point at what I am doing wrong and what I can do here to make my query work?
sorry, put the wrong class above...please read above text as :
For the objects I have - where object T has set of Objects B (and B is a subclass of A), What I want to acomplish is - I want to return all objects T only if I find exactly one object in the Set of Objects B (which is subclass of A, and the property1 is a property of the root class A) which matches my condition of xx.property1=:value1. Can you point at what I am doing wrong and what I can do here to make my query work?[/