[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3183) Allow Embeddable and composite-elements to use custom UserType or CompositeUserType types.
Nate (JIRA)
noreply at atlassian.com
Thu Mar 13 18:31:33 EDT 2008
Allow Embeddable and composite-elements to use custom UserType or CompositeUserType types.
------------------------------------------------------------------------------------------
Key: HHH-3183
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3183
Project: Hibernate3
Issue Type: Improvement
Components: core
Environment: Hibernate-3.2.5, HSQL database, Java 1.6.0_01
Reporter: Nate
Priority: Trivial
I am unable to define a custom type for a value type of a list. I have a List<Foo> and a custom CompositeUserType for Foo. I need to configure Hibernate to use the list with the custom type. The 3.0 DTD for Hibernate does not have a "type" attribute for the composite-element. It only permits the properties to be listed of the element like below.
<list name="foos" table="Foos">
<key column="Parent_ID"/>
<list-index column="ListPosition"/>
<composite-element class="Foo">
<property name="bar" column="Bar"/>
</composite-element>
</list>
What I want is to define a custom type for the composite-element like below.
<list name="foos" table="Foos">
<key column="Parent_ID"/>
<list-index column="ListPosition"/>
<composite-element class="Foo" type="FooCompositeElement"/>
</list>
It would also be nice to have an annotation for Embeddable objects to do the same thing. For example, I can declare an object of type Foo to be Embeddable and also define a custom CompositeUserType for Foo.
--
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