azachar wrote:
Suppose example:
B - an abstract class
B1 - a (concrete) subclass of class B
B2 - a subclass of class B
A - class that is asociated with B like this A.getB()
Criteria rootCriteria = session.createCriteria(A.class);
Criteria asociatedCriteria = rootCriteria.createCriteria("B");
Is it possible to query like this?
asociatedCriteria.add(Restrictions.eq("class", B1.class));
How can I reach this polymorphism restriction on associations?
Thanks for your answers, or future soon implementation.
Did you find any solution for this? I need the same thing....
BTJ