Ditto on posting the calling code. But the first thing I notice in you rmapping file is that your subclasses do not specify a discriminator value. Did you miss that in the post, or do you intentionally not specifiy it?
If you're loading a QualificationCode instance by doing the following:
Code:
QualificationCode qc =(QualificationCode) session.load(QualificationCode.class,id);
QualificationCodeEZ qcEz = (QualificationCodeEZ) qc;
It will fail as you cannot cast the QualificationCode proxy to a QualificationCodeEZ. This is described in better detail here:
http://www.hibernate.org/hib_docs/v3/re ... ng-proxiesThese proxy issues also affect Session.load() as it too returns a Proxy, not an actual instance. If you're after a QualificationCodeEZ, you should load it this way:
Code:
QualificationCode qc =(QualificationCode) session.load(QualificationCodeEZ.class,id);
That will work.
Ryan-