I have the following structure:
table1: Network
table2:SpecialNet1 extends Network
table3:SpecialNet2 extends Network
table4:Customer
Custumer has a property called host and it is type of Network
because, as a choice, can be either SpecialNet1 or SpecialNet2.
Both special networks have same property called name.
The problem is, when I try to make a query, using Criteria and Expression classes, I'm not able to search by this property "name".
I tried named queries as well, using casting, but I had always parsing errors.
I found couple of examples in mail-list archive, but nothing helped.
Is there any solution for this?
Thanks in advance
|