orderdetail.java

来自「一个简易的网上购物系统。具有普遍的购物功能。还有一个小型的论坛」· Java 代码 · 共 100 行

JAVA
100
字号
package com.longHua.domain;


/**
 * Orderdetail entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class OrderDetail implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -3933077054386132345L;
	private Integer id;
	private Integer lineNum;
	private Integer productId;
	private String productName;
	private Integer productCount;
	private Float totalPrice;
	private Orders order;

	// Constructors

	/** default constructor */
	public OrderDetail() {
	}

	/** full constructor */
	public OrderDetail(Integer orderId, Integer lineNum, Integer productId,
			String productName, Integer productCount, Float totalPrice) {
		this.lineNum = lineNum;
		this.productId = productId;
		this.productName = productName;
		this.productCount = productCount;
		this.totalPrice = totalPrice;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getLineNum() {
		return this.lineNum;
	}

	public void setLineNum(Integer lineNum) {
		this.lineNum = lineNum;
	}

	public Integer getProductId() {
		return this.productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Integer getProductCount() {
		return this.productCount;
	}

	public void setProductCount(Integer productCount) {
		this.productCount = productCount;
	}

	public Float getTotalPrice() {
		return this.totalPrice;
	}

	public void setTotalPrice(Float totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Orders getOrder() {
		return order;
	}

	public void setOrder(Orders order) {
		this.order = order;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?