I have an object that I've loaded, and one of its properties is an OrgUnit. OrgUnit is a parent class to Organization. This particular object is an Organization, or it least it seems to be in the database. I've even run the query and checked the results, and the subclass properties are all loaded correctly. Yet, for some reason, if I try to cast the OrgUnit to an Organization I get a ClassCastException.
So what I'm wondering is this: is implicit polymorphism utilized if the polymorphic object is lazily loaded?
Hibernate version:
3.1
|