Hi,

I have just been through the same process, and the only way around it I managed to get working is to treat the component as a separate table, rather than part of the main table. That way, normal polymorphic configuration is applicable.

All other mechanisms I tried ended up with the base class being the returned type, regardless of the type actually placed in the database.

Regards
Frank

On 31/05/2005, at 4:16 AM, Mark Lundquist wrote:

Hi,

I need to map a class with a <component> (i.e., a value type) that is polymorphic. It seems like a basic thing, but I don't even know how to represent this in Hibernate. I've got a request in on the Hibernate Forum (http://forum.hibernate.org/viewtopic.php? t=943021&highlight=polymorphic), no answers yet...

But I realized that even if I did, I wouldn't necessarily know how to write the Xdoclet tags to generate the mapping.

So then I thought, maybe somebody here can help me figure this out all in one go! :-)

I'm using Hibernate 3, Xdoclet 1.2.3, more than willing to give Xdoclet 2 a whirl if necessary...

Thanks,
—ml—



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/? fr_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Regards
Frank Adcock
[EMAIL PROTECTED]

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Bush Life Pty Limited. Finally, the recipient should check this email and any attachments for the presence of viruses. Bush Life accepts no liability for any damage caused by any virus transmitted by this email.



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to