However, I think this should be default functionality. If you have subclasses with discriminators, and another class has a set of that subclass, it should automatically qualify with the discriminator when retrieving the set. Is this something I should work on fixing in the Hibernate source, or am I the only one who sees this as a requirement?
Thanks for your help! Jenica Humphreys MountainView Software
At 05:50 PM 8/22/2003 -0600, you wrote:
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
------------------------------------------------------- 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