I'm new to hibernate and I came a cross a problem. I've read all throu the starter guides etc. on the hibernate website and I still can't come up with a solution.
I have a class like this:
public class ResultTree {
String attrName;
Map<String, ResultTree> valueMap;
String classValue;
int caseQuant;
Set<Map<String, String>> otherRules;
public String getAttrName() {
return attrName;
}
public void setAttrName(String attrName) {
this.attrName = attrName;
}
public Map<String, ResultTree> getValueMap() {
return valueMap;
}
public void setValueMap(Map<String, ResultTree> valueMap) {
this.valueMap = valueMap;
}
public String getClassValue() {
return classValue;
}
public void setClassValue(String classValue) {
this.classValue = classValue;
}
public int getCaseQuant() {
return caseQuant;
}
public void setCaseQuant(int caseQuant) {
this.caseQuant = caseQuant;
}
public Set<Map<String, String>> getOtherRules() {
return otherRules;
}
public void setOtherRules(Set<Map<String, String>> otherRules) {
this.otherRules = otherRules;
}
}
How should a hbm.xml for a class like this look? I'm free to create any data structure.
Thanks for the help, MM