hi,
I'm using an object model which has following structure:
Code:
Base
|
------------------------------------
| | |
Sub1 Sub2 Sub3
|
----------
| |
Sub11 Sub12
when I'm writing following hql construct
Code:
from Base b where b.class in (Sub11, Sub12, Sub2)
it works fine and hibernate uses the wright disrimenator values.
But when I want to facilitate the hql statement, while using the super class of Sub11 and Sub12, hibernate doesnt know the discrimenators - example:
Code:
from Base b where b.class in (Sub1, Sub2)
.
This seems for me, that hibernate only knows the discrimenator for concrete classes and not for super classes - when using the .class construct.
Or the other way round, how can I find out which discriminators are used for the all subclasses.
Thanks in advance,
best regards,
Michi