I have class A and subclasses B and C that have different properties. How can I do something like: a from A a where (a.class = B and a.specific property-of-b = "y") or (a.class = C and a.specific property-of-c = "z")
Is it possible for hibernation to understand that when it is an instance of a particular class, then it can access its specific properties or is it impossible to do something like this, and I have to do:
a from A a, where a.id in (select b.id from B b, where b.specific property-of-b = "y") or a.id in (select c.id from C c, where c. specific property-of-c = "z")
thanks
source share