Hi all,
I'm trying to map my Hashmap in Hibernate. All examples I can find are simply like this:
class FooBar{
Map<String,String> myStrings;
}
Which would simply map to
<map role="ages">
<key column="id"/>
<index column="name" type="string"/>
<element column="age" type="string"/>
</map>
However, I use a more object-oriented approach in my Java code. Kind of like the following:
class Bar{
private Map<String, Foo> myFoos;
}
How would I go about mapping this? As the relationshop? Of otherwise defined: How can I map a one-to-many in a Map?
Thanks, Bart