I have a class that needs to be persisted. The class contains a java.util.List of objects, each of which contains a java.util.Map.
I have fought and struggled with this for a long long time, searched high and low but cannot for the life of me work out how to persist such a class using Hibernate (3.2.6ga).
Class example
Code:
public class ComponentClass {
private Map<Locale, String> translations = new HashMap<Locale, String>();
...
}
public class PersistableClass {
private String id;
...
private List<ComponentClass> languageSensitiveComponents;
}
I can quite happily map a List and quite happily map a Map, but mapping the above has eluded me.
Thanks in advance[/code]