product.java
来自「一个可以作为毕业设计的网上商城项目」· Java 代码 · 共 69 行
JAVA
69 行
package com.fang.shopping;
import java.sql.Timestamp;
public class Product {
private int id;
private String name;
private String descr;
private double normalprice;
private double memberprice;
private Timestamp pdate;
private int categoryid;
//持有对方的引用
private Category category;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescr() {
return descr;
}
public void setDescr(String descr) {
this.descr = descr;
}
public double getNormalprice() {
return normalprice;
}
public void setNormalprice(double normalprice) {
this.normalprice =normalprice;
}
public double getMemberprice() {
return memberprice;
}
public void setMemberprice(double memberprice) {
this.memberprice = memberprice;
}
public int getCategoryid() {
return categoryid;
}
public void setCategoryid(int categoryid) {
this.categoryid = categoryid;
}
public Timestamp getPdate() {
return pdate;
}
public void setPdate(Timestamp pdate) {
this.pdate = pdate;
}
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?