item.java
来自「这是一个网上书店」· Java 代码 · 共 96 行
JAVA
96 行
package com.ebookstore.dto;
public class Item extends BaseDTO {
// Fields
private Integer itemId;
private Integer bookId;
private Double baseprice;
private Double discount;
private Double unitcost;
private String status;
private String attribute1;
// Constructors
/** default constructor */
public Item() {
}
/** full constructor */
public Item(Integer bookId, Double baseprice, Double discount, Double unitcost, String status, String attribute1) {
this.bookId = bookId;
this.baseprice = baseprice;
this.discount = discount;
this.unitcost = unitcost;
this.status = status;
this.attribute1 = attribute1;
}
// Property accessors
public Integer getItemId() {
return this.itemId;
}
public void setItemId(Integer itemId) {
this.itemId = itemId;
}
public Integer getBookId() {
return this.bookId;
}
public void setBookId(Integer bookId) {
this.bookId = bookId;
}
public Double getBaseprice() {
return this.baseprice;
}
public void setBaseprice(Double baseprice) {
this.baseprice = baseprice;
}
public Double getDiscount() {
return this.discount;
}
public void setDiscount(Double discount) {
this.discount = discount;
}
public Double getUnitcost() {
return this.unitcost;
}
public void setUnitcost(Double unitcost) {
this.unitcost = unitcost;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public String getAttribute1() {
return this.attribute1;
}
public void setAttribute1(String attribute1) {
this.attribute1 = attribute1;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?