package com.uas.search.console.b2b.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 买家委外验收明细
 * 
 * @author aof
 * @date 2015年8月18日
 */
@Table(name = "make$acceptitem")
@Entity
public class MakeAcceptItemSimpleInfo {

	/**
	 * 主键ID
	 */
	@Id
	@Column(name = "mai_id")
	private Long id;

	/**
	 * 委外订单
	 */
	@OneToOne(cascade = { CascadeType.REFRESH })
	@JoinColumn(name = "mai_odid", insertable = false, updatable = false)
	private MakeOrderSimpleInfo order;

	/**
	 * 入库批号
	 */
	@Column(name = "mai_batchcode")
	private String batchCode;

	public Long getId() {
		return id;
	}

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

	public MakeOrderSimpleInfo getOrder() {
		return order;
	}

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

	public String getBatchCode() {
		return batchCode;
	}

	public void setBatchCode(String batchCode) {
		this.batchCode = batchCode;
	}

	@Override
	public String toString() {
		return "MakeAcceptItemSimpleInfo [id=" + id + ", order=" + order + ", batchCode=" + batchCode + "]";
	}

}