package com.uas.platform.b2b.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Table(name = "bar$label")
@Entity
public class BarLabel implements Serializable{
	
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "la_id")
	private Long id;
	
	/**
	 * 所属企业UU
	 */
	@Column(name = "la_enuu")
	private Long enUU;
	
	@Column(name = "la_name")
	private String name;
	
	@Column(name = "la_indate")
	private Date indate;
	
	@Column(name = "la_inman")
	private String inman;
	
	@Column(name = "la_status")
	private String status;
	
	@Column(name = "la_pagesize")
	private String pagesize;
	
	@Column(name = "la_code")
	private String code;
	
	@Column(name = "la_statuscode")
	private String statuscode;

	/**
	 *条码模板配置
	 */
	@OneToMany(mappedBy = "label", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }, fetch = FetchType.EAGER)
	private Set<BarLabelPrintSetting> printSetting;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getIndate() {
		return indate;
	}

	public void setIndate(Date indate) {
		this.indate = indate;
	}

	public String getInman() {
		return inman;
	}

	public void setInman(String inman) {
		this.inman = inman;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPagesize() {
		return pagesize;
	}

	public void setPagesize(String pagesize) {
		this.pagesize = pagesize;
	}

	public String getCode() {
		return code;
	}

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

	public String getStatuscode() {
		return statuscode;
	}

	public void setStatuscode(String statuscode) {
		this.statuscode = statuscode;
	}

	/**
	 * @return the enUU
	 */
	public Long getEnUU() {
		return enUU;
	}

	/**
	 * @param enUU the enUU to set
	 */
	public void setEnUU(Long enUU) {
		this.enUU = enUU;
	}

	/**
	 * @return the printSetting
	 */
	public Set<BarLabelPrintSetting> getPrintSetting() {
		return printSetting;
	}

	/**
	 * @param printSetting the printSetting to set
	 */
	public void setPrintSetting(Set<BarLabelPrintSetting> printSetting) {
		this.printSetting = printSetting;
	}

	
}
