Hello,
I have a problem with an HQL Query. I would like to know if we can filter a query with the type of instance such as:
Code:
from SuperClass c where instanceOf(c)=instance
For example, I have a super class Transaction. StockTransaction, TransferTransaction and ThirdTransaction are children of Transaction. ScheduledThirdTransaction is children of ThirdTransaction:
I would like to select all Transaction except ScheduledThirdTransaction, such as:
Code:
from Transaction t where instanceOf(t) != ScheduledThirdTransaction
I hope i was enough explicit. If not, please tell me and I will re-explain. I also hope it is possible to do that because I really didn't find anything on the web
Thanks for your help