Joined: Wed Oct 26, 2005 2:44 pm Posts: 4
|
I'm using a Java 5 enum as a key to a Map. Whenever I use an enum as a regular old property, I have used an inline type declaration such as:
<property name="imageType" column="TYPE">
<type name="EnumUserType"><param name="enumClassName">ImageType</param></type>
</property>
It would be nice to be able to do the same thing inside of <map-key> but the DTD doesn't seem to allow it. I had to use a <typedef> instead.
Hibernate version:
3.1 RC2
DTD version:
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
|