[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1910) Polymorphic Components

John D. Heintz (JIRA) noreply at atlassian.com
Fri Aug 3 09:52:11 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27718 ] 

John D. Heintz commented on HHH-1910:
-------------------------------------

How can one solve this problem with CompositeUserType? 

Specifically, how can a CompositeUserType be exposed to HQL so that polymorphic queries work like entity polymorphism?

> Polymorphic Components
> ----------------------
>
>                 Key: HHH-1910
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1910
>             Project: Hibernate3
>          Issue Type: New Feature
>          Components: core
>            Reporter: Joe Kelly
>
> Please add support for mapping polymorphic components (i.e. polymorphism in the <component> element). This has been requested and suggested in numerous Hibernate user forum threads. Here's a sampling of these threads:
> http://forum.hibernate.org/viewtopic.php?t=949827&highlight=component+subclass
> http://forum.hibernate.org/viewtopic.php?t=947207&highlight=component+discriminator
> http://forum.hibernate.org/viewtopic.php?t=929436&highlight=component+discriminator
> http://forum.hibernate.org/viewtopic.php?t=926027&highlight=component+discriminator
> http://forum.hibernate.org/viewtopic.php?t=930136&highlight=abstract+component
> I realize that you can create a CompositeUserType to solve this problem. In fact, I have done this on numerous occasions. However, this requires writing code, which is not nearly as convenient as writing a little bit of XML.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list