You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
package com.ssm.di.xml;
|
|
|
|
public class Product {
|
|
private Integer pid;
|
|
private String pname;
|
|
private Double marketPrice;
|
|
private Double shopPrice;
|
|
private String image;
|
|
|
|
public Product() {}
|
|
|
|
public Integer getPid() { return pid; }
|
|
public void setPid(Integer pid) { this.pid = pid; }
|
|
|
|
public String getPname() { return pname; }
|
|
public void setPname(String pname) { this.pname = pname; }
|
|
|
|
public Double getMarketPrice() { return marketPrice; }
|
|
public void setMarketPrice(Double marketPrice) { this.marketPrice = marketPrice; }
|
|
|
|
public Double getShopPrice() { return shopPrice; }
|
|
public void setShopPrice(Double shopPrice) { this.shopPrice = shopPrice; }
|
|
|
|
public String getImage() { return image; }
|
|
public void setImage(String image) { this.image = image; }
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Product{" +
|
|
"pid=" + pid +
|
|
", pname='" + pname + '\'' +
|
|
", marketPrice=" + marketPrice +
|
|
", shopPrice=" + shopPrice +
|
|
", image='" + image + '\'' +
|
|
'}';
|
|
}
|
|
} |