[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1470?page=c...
]
Michael Plöd commented on HHH-1470:
-----------------------------------
Hi,
do you want me to post a patch for this issue? Or why has it not been touched yet?
Cheers,
Mike
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira