[hibernate]错误,Could not find a getter for cities
相应的hbm.xml关联
<set name= "cities ">
<key column= "fid "/>
<one-to-many class= "com.doit.person.pojo.City " />
</set>
pojo中
private Set cities;
public Set getCities() {
return cities;
}
public void setCities(Set cities) {
this.cities = cities;
}
在网上看到类似的错误都是因为名称大小写混杂,现在全部都小写都有错,请问谁知道是什么原因?
Weblogic + Spring + hibernate
------解决方案--------------------相应的hbm.xml关联
<set name= "cities ">
<key column= "fid "/>
<one-to-many class= "com.doit.person.pojo.City " />
</set>
你的这个hbm.xml对应的类是那个?是不是有个cities属性?