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