Hi!
I have a class that contains the following element:
Code:
private Map<String, Integer> myMap;
The class is described in the orm.xml like this:
Code:
<entity class="MyClass" access="FIELD">
<attributes>
<basic name="a" />
<basic name="b" />
<basic name="c" />
<many-to-many name="myMap" />
<transient name="serialVersionUID" />
</attributes>
</entity>
Upon execution I get an exception that boils down to this:
Quote:
Caused by: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: MyClass.myMap[java.lang.Integer]
It seems that there is a certain knack needed to get this solved?!
Regards,
Christoph