package pwv.spring.model; import pwv.spring.edbutil.IEBase; public class Product implements IEBase { private Integer id; private String name; private Double unitPrice; public Product(String name, double price) { this.name = name; this.unitPrice = new Double(price); } public Product() { this(null, 0.0); } // 自動生成した setter, getter public Integer getId() { return id; } public String getName() { return name; } public Double getUnitPrice() { return unitPrice; } public void setId(Integer integer) { id = integer; } public void setName(String string) { name = string; } public void setUnitPrice(Double double1) { unitPrice = double1; } }