If I have a one-to-many relationship with a subclass using the table per class strategy, with a discriminator distinguishing between subclasses.

I have another class with a set of a specific subclass of elements. My problem is that the set is being filled with all elements, not just the ones that match the discriminator and therefore should be included in the set.

This causes Hibernate to throw a WrongClassException.

So, my question is: Is it possible (with Hibernate 1.2) to have a set of "subclass" elements - and have only records of that type returned when the set is automatically loaded?

Thanks for your help!
Jenica Humphreys
MountainView Software



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to