how to i map the following object to singe table?
Code:
public class PackingUnit {
private Long id;
private Map displayNames = new HashMap();
public PackingUnit() {
}
public String getDisplayName(String language) {
return (String) displayNames.get(language);
}
public void setDisplayName(String language, String displayName) {
this.displayNames.put(language, displayName);
}
protected Map getDisplayNames() {
return displayNames;
}
protected void setDisplayName(Map displayNames) {
this.displayNames = displayNames;
}
}
andi