package com.uas.platform.b2b.model;

import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


@Table(name = "bar$packagedetail")
@Entity
public class BarPackageDetail implements Serializable{
	private static final long serialVersionUID = 1L;

    /**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "pd_id")
	private Long id;
	
	/**
	 * 包装箱主表
	 */
	@ManyToOne(cascade = CascadeType.REFRESH, optional = true)
	@JoinColumn(name = "pd_paid", nullable = false)
	private BarPackage barpackage;
	
	/**
	 * 外箱号
	 */
	@Column(name = "pd_outboxcode")
	private String outboxcode;
	
	/**
	 * 内层箱号
	 */
	@Column(name = "pd_innerboxcode")
	private String innerboxcode;
	
	/**
	 * 序列号
	 */
	@Column(name = "pd_barcode")
	private String barcode;
	
	/**
	 * 数量
	 */
	@Column(name = "pd_innerqty")
	private double innerqty;
		
	public BarPackage getBarpackage() {
		return barpackage;
	}

	public void setBarpackage(BarPackage barpackage) {
		this.barpackage = barpackage;
	}

	public String getOutboxcode() {
		return outboxcode;
	}

	public void setOutboxcode(String outboxcode) {
		this.outboxcode = outboxcode;
	}

	public String getInnerboxcode() {
		return innerboxcode;
	}

	public void setInnerboxcode(String innerboxcode) {
		this.innerboxcode = innerboxcode;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public double getInnerqty() {
		return innerqty;
	}

	public void setInnerqty(double innerqty) {
		this.innerqty = innerqty;
	}
	
	public Long getId() {
		return id;
	}

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

	
}

