Hi all,
My entity defines a field like
Map<String, String> props;
I've got this hibernate xml configuration
<map name="props" table="PROPS">
<key column="id"/>
<index column="name" type="string"/>
<element column="value" type="string"/>
</map>
Now I want my Map to be an EnumMap like
Map<MyEnum, String> props;
I think I need to create my own Hibernate UserType for MyEnum and then reference this from the hbm.xml ...
Do you have any idea of what's the best/easiest way to achieve this?
Thanks a lot