表单数据如何封装 set类型数据(hibernate struts)
实体类代码 winebaseinfo(酒基本信息)代码
private Integer winebasicinfoid;private BottleSize bottleSize;private Set manufacturers = new HashSet(0);public Integer getWinebasicinfoid() { return this.winebasicinfoid; } public void setWinebasicinfoid(Integer winebasicinfoid) { this.winebasicinfoid = winebasicinfoid; } public BottleSize getBottleSize() { return this.bottleSize; } public void setBottleSize(BottleSize bottleSize) { this.bottleSize = bottleSize; } public Set getManufacturers() { return this.manufacturers; } public void setManufacturers(Set manufacturers) { this.manufacturers = manufacturers; }
private Integer bottleid;private Short bottlesize;public Integer getBottleid() { return this.bottleid; } public void setBottleid(Integer bottleid) { this.bottleid = bottleid; } public Short getBottlesize() { return this.bottlesize; } public void setBottlesize(Short bottlesize) { this.bottlesize = bottlesize; }