Hi,
I have a class containing a Map. This Map has a String as key, the value is some interface, currently implemented by 3 concrete classes. How can I do the hibernate mapping in this case? If I try to map the interface, I get a NullpointerException (probably because there is no primairy key definined).
So I want to do this for the class that contains the Map:
Code:
<map name="myMap">
<key column="id"/>
<index type="string"/>
<element type="myInterface"/>
</map>
but then I get an error ofcourse that myInterface is not a persistent class.
kind regards,
Wim