[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1470) Enhance Hibernate-Mapping DTD Definition of type element

Michael Plöd (JIRA) noreply at atlassian.com
Tue Aug 22 09:04:19 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1470?page=comments#action_24014 ] 

Michael Plöd commented on HHH-1470:
-----------------------------------

Yes, I have verified that it works.

But I'm not too sure about the Annotation's side of Hibernate.

I will prepare a patch tonight and submit it to this task.



> Enhance Hibernate-Mapping DTD Definition of type element
> --------------------------------------------------------
>
>          Key: HHH-1470
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1470
>      Project: Hibernate3
>         Type: Improvement

>  Environment: Hibernate 3.1.x
>     Reporter: Michael Plöd
>     Priority: Trivial

>
>
> As discussed with Steve in http://forum.hibernate.org/viewtopic.php?t=955303
> Could you please update the DTD Definition of "Element" as follows:
> <!ELEMENT element (column|formula|type)*>
>    <!ATTLIST element column CDATA #IMPLIED>
>    <!ATTLIST element node CDATA #IMPLIED>
>    <!ATTLIST element formula CDATA #IMPLIED>
>    <!ATTLIST element type CDATA #IMPLIED>
>    <!ATTLIST element length CDATA #IMPLIED>
>    <!ATTLIST element precision CDATA #IMPLIED>
>    <!ATTLIST element scale CDATA #IMPLIED>
>    <!ATTLIST element not-null (true|false) "false">
>    <!ATTLIST element unique (true|false) "false"> 
> Actually type should be enabled as a child element of Element allowing users to add a parameter to a parameterized UserType inside an Element definition. Right now users will have to create a typedef with the parameter and place the name of the typedef in the attribute type. In addition to that the attribute definition of type must be set to IMPLIED.
> This would enalbe a mapping like that:
> <set name="ples" table="MY_PLES_TABLE">
>         <key column="myClassId"/>
>         <element>
>             <type name="my.comp.common.hibernate.PleType">
>                 <param name="type">my.comp.domain.PleElement</param>
>             </type>
>         </element>
> </set> 

-- 
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