[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-822) <key-property> will actually pick up <type> tags if it were allowed by the DTD

Mattias Jiderhamn (JIRA) noreply at atlassian.com
Mon Oct 1 12:27:25 EDT 2007


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

Mattias Jiderhamn commented on HHH-822:
---------------------------------------

The same needs to be fixed for map-key (with DTD from 3.2.2)

> <key-property> will actually pick up <type> tags if it were allowed by the DTD
> ------------------------------------------------------------------------------
>
>                 Key: HHH-822
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-822
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.0 final, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5
>            Reporter: amit bhayani
>             Fix For: 3.1 beta 2
>
>
> The DTD does not allow map to have a composite-map-key where one of it's property is a usertype that implements ParameterizedType.
> for example:
> <map name="pgtaPermission" table="USERDESKPERMISSIONS_TABLE" lazy="false" fetch="select">
> <key column="USERDBID"/>
> <composite-map-key class="UserPermDBImpl$UserPermissionData$PitGroupTAPermissionKey">
> <key-property name="pitGroup" column="PITGROUPDBID">
> <type name="com.tullib.core.hibernate.usertype.BasicEnumUserType">
> <param name="CLASS"> com.tullib.sds.party.User$UserType</param>
> </type>
> </key-property>
> ...............
> </composite-map-key>
> </map> 
> If hibernate-mapping-3.0.dtd is modified to have <type> in <key-property> tag it should work

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