📄 transaction.java
字号:
package tarena.entity;
/**
* Transaction entity.
*
* @author MyEclipse Persistence Tools
*/
public class Transaction implements java.io.Serializable {
// Fields
private Integer id;
private Color color;
private Orders orders;
private Product product;
private Integer amount;
private Double money;
// Constructors
/** default constructor */
public Transaction() {
}
/** minimal constructor */
public Transaction(Product product, Integer amount) {
this.product = product;
this.amount = amount;
}
/** full constructor */
public Transaction(Color color, Orders orders, Product product,
Integer amount, Double money) {
this.color = color;
this.orders = orders;
this.product = product;
this.amount = amount;
this.money = money;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Color getColor() {
return this.color;
}
public void setColor(Color color) {
this.color = color;
}
public Orders getOrders() {
return this.orders;
}
public void setOrders(Orders orders) {
this.orders = orders;
}
public Product getProduct() {
return this.product;
}
public void setProduct(Product product) {
this.product = product;
}
public Integer getAmount() {
return this.amount;
}
public void setAmount(Integer amount) {
this.amount = amount;
}
public Double getMoney() {
return this.money;
}
public void setMoney(Double money) {
this.money = money;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -