Beginner |
|
Joined: Mon Aug 22, 2005 9:57 pm Posts: 27
|
Dear All
I have a question regarding HQL as below.
Customer:Contact is 1:1
Contact:Address is 1:n
Address:PhoneAdress is 1:1
Address:PostAddress is 1:1
PhoneAddress.medium is "PHONE"
PostAddress.medium is "MAIL"
PhoneAddress and PostAddress are both subclass of Address
I just need to find Customer who has no PhoneAddress
For example , if a Customer having both PhoneAddress and PostAddress
,then this Customer could not appear in selected Result.
How to create this in HQL?
|
|