productdto.java
来自「网上商城 1.注册登录 2.商品浏览 3.购物车 4.订单」· Java 代码 · 共 61 行
JAVA
61 行
package db.dto;
public class ProductDTO {
Integer productId;
String name;
String image;
Float price;
String des;
Integer type;
public Integer getProductId() {
return productId;
}
public void setProductId(Integer productId) {
this.productId = productId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public Float getPrice() {
return price;
}
public void setPrice(Float price) {
this.price = price;
}
public String getDes() {
return des;
}
public void setDes(String des) {
this.des = des;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public String toString(){
String s=new String();
s=s
+ "productId:"+this.productId.toString()
+"name:"+this.name.toString()
+"image:"+this.image.toString()
+"price:"+this.price.toString()
+"des:"+this.des.toString()
+"type:"+this.type.toString();
return s;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?