transaction.java

来自「一个网上购物商城系统」· Java 代码 · 共 95 行

JAVA
95
字号
package tarena.entity;

/**
 * Transaction generated by 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 + =
减小字号Ctrl + -
显示快捷键?