📄 product.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -