package com.palmnest.model.estateserve;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 产品实体类
 *
 * @author xiemin
 */

@Entity
@Table(name = "tb_product")
public class Product implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 7889506815170258600L;

	private int        id;//主键ID
	//省份
	private String     province;
	//产品名称
	private String     productName;
	//产品类型
	private String     type;
	//产品价格
	private BigDecimal productPrice = BigDecimal.valueOf(0);
	//实际出售价格
	private BigDecimal realPrice    = BigDecimal.valueOf(0);
	//运营商
	private String     carrieroperator;
	//折扣
	private BigDecimal discount     = BigDecimal.valueOf(0);
	//上浮折扣(实际出售折扣)
	private BigDecimal upDiscount   = BigDecimal.valueOf(0);
	//运营商限价
	private BigDecimal checkPrice   = BigDecimal.valueOf(0);
	//编码
	private String     code;
	private String     creator;//创建者
	private String     createTime;//创建时间
	private String     modifier;//修改者
	private String     modifyTime;//修改时间
	private String     isEnabled;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

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

	public String getProductName() {
		return productName;
	}

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

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public BigDecimal getProductPrice() {
		return productPrice;
	}

	public void setProductPrice(BigDecimal productPrice) {
		this.productPrice = productPrice;
	}

	public BigDecimal getRealPrice() {
		return realPrice;
	}

	public void setRealPrice(BigDecimal realPrice) {
		this.realPrice = realPrice;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public String getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(String isEnabled) {
		this.isEnabled = isEnabled;
	}

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

	public String getCarrieroperator() {
		return carrieroperator;
	}

	public void setCarrieroperator(String carrieroperator) {
		this.carrieroperator = carrieroperator;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	public BigDecimal getUpDiscount() {
		return upDiscount;
	}

	public void setUpDiscount(BigDecimal upDiscount) {
		this.upDiscount = upDiscount;
	}

	public BigDecimal getCheckPrice() {
		return checkPrice;
	}

	public void setCheckPrice(BigDecimal checkPrice) {
		this.checkPrice = checkPrice;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
