📄 item.java
字号:
package com.shopping.vo;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
public class Item implements java.io.Serializable {
private Integer id;
private Category category;
private String name;
private String descr;
private double price;
private Date pdate;
private Integer proStorage;
private String imageUrl;
private Set lineitems = new HashSet(0);
public Item() {
}
/** full constructor */
public Item(Category category, String name, String descr, double price,
Date pdate, Integer proStorage, String imageUrl, Set lineitems) {
this.category = category;
this.name = name;
this.descr = descr;
this.price = price;
this.pdate = pdate;
this.proStorage = proStorage;
this.imageUrl = imageUrl;
this.lineitems = lineitems;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Category getCategory() {
return this.category;
}
public void setCategory(Category category) {
this.category = category;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescr() {
return this.descr;
}
public void setDescr(String descr) {
this.descr = descr;
}
public double getPrice() {
return this.price;
}
public void setPrice(double price) {
this.price = price;
}
public Date getPdate() {
return this.pdate;
}
public void setPdate(Date pdate) {
this.pdate = pdate;
}
public Integer getProStorage() {
return this.proStorage;
}
public void setProStorage(Integer proStorage) {
this.proStorage = proStorage;
}
public String getImageUrl() {
return this.imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public Set getLineitems() {
return this.lineitems;
}
public void setLineitems(Set lineitems) {
this.lineitems = lineitems;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -