我创建了一个类如下...
public class BeanA{
private String customerId;
private String cutomerName;
private Map<String, SubMarket> subMarkets = new HashMap<>();
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getCutomerName() {
return cutomerName;
}
public void setCutomerName(String cutomerName) {
this.cutomerName = cutomerName;
}
public Map<String, String> getSubMarkets() {
return subMarkets;
}
public void setSubMarkets(Map<String, String> subMarkets) {
this.subMarkets = subMarkets;
}
}
我也做了休眠映射。
它完全有效。
现在我想得到结果集,其中 [Map] key=some value and value= some value...
我希望通过休眠查询来获得该结果集。