Hibernate version: 3.2.5ga
I have:
Class A
Class B extends A
Class C extends A
Table per subclass mapping (joined-subclass).
Class Z {
Set<A> items = new HashSet<A>
}
Items are mapped as many-to-many, through a xref table. What I would like to have is items contain all B and C instances found in the xref. What I get is just a list of A instances, I get the correct number of objects, but I would like the list to contain the full subclasses (I want to cast to them later). Is there anyway to do this?
Thanks!
-Nate
|