Hi,
I'd like to be able to map either of
Code:
Map<Locale, List<Tag>>
or
Code:
Map<Locale, Map<String, String>>
(considering that the potential Tag above class is a simple javabean with two name/value String properties)
Any idea how I could do this, specifically using annotations? Any hint using hbm.xml would be fine too of course ;)
What I have until now is
Code:
@CollectionOfElements
public List<Tag> getTags()
... where I added a Locale property to my Tag class, but that's not really satisfying, since it doesn't really reflect the domain reality, and the client code will always need to access the "tags" per Locale anyways.
Thanks for any tip ! Cheers,
greg
Hibernate version:
3.2.0-cr2 + -annotations-3.2.0-cr1