Hibernate version: 3.2.5
How would I map the following Map<EnumA, List<ClassB>>???
I may be way off, but, currently I have something like the following.
Code:
<class...>
...
<map name="myMap" table="tbl_for_map" collection-type="my.special.collection.type.MyCollectionType">
<key column="key_from_above"/>
<index column="myMapKey" type="my.special.user.type.for.EnumAUserType"/>
<one-to-many class="my.ClassB"/>
</map>
</class>
Now the error that I receive is pretty obvious:
Code:
HibernateException: instance not of expected entity type: "java.util.List" is not a: "my.ClassB"
However, I can't seem to find any mapping element that will allow me to specify that the value of the map is a java.util.List that holds numerous my.ClassB objects (instead of using the one-to-many with a class attribute of my.ClassB).
Any help or direction would be greatly appreciated.