abstractproduct.java
来自「struts+spring+hibernate例子」· Java 代码 · 共 60 行
JAVA
60 行
package com.shop.entity;
public class AbstractProduct {
private Integer id;
private String pname;
private Double price;
private Integer viewpopluarity;
public AbstractProduct() {
}
public AbstractProduct(Integer id, String pname, Double price) {
super();
this.id = id;
this.pname = pname;
this.price = price;
}
public AbstractProduct(Integer id, String pname, Double price,
Integer viewpopluarity) {
this.id = id;
this.pname = pname;
this.price = price;
this.viewpopluarity = viewpopluarity;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getPname() {
return pname;
}
public void setPname(String pname) {
this.pname = pname;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public Integer getViewpopluarity() {
return viewpopluarity;
}
public void setViewpopluarity(Integer viewpopluarity) {
this.viewpopluarity = viewpopluarity;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?