package com.uas.platform.b2b.mobile.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 出差明细
 * 
 * @author hejq
 * @time 创建时间：2017年2月23日
 */
@Entity
@Table(name = "mobile$feepleasedetail")
public class FeePleaseDetail implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "fpd_id")
	private Long fpd_id;

	/**
	 * 序号
	 */
	@Column(name = "fpd_detno")
	private String fpd_detno;

	/**
	 * 主表
	 */
	@ManyToOne(cascade = CascadeType.ALL, optional = true)
	@JoinColumn(name = "fpd_fpid", nullable = false)
	private FeePlease feePlease;

	/**
	 * 出差目的地
	 */
	@Column(name = "fpd_location")
	private String fpd_location;

	/**
	 * 地址
	 */
	@Column(name = "fpd_address")
	private String fpd_address;

	public Long getFpd_id() {
		return fpd_id;
	}

	public void setFpd_id(Long fpd_id) {
		this.fpd_id = fpd_id;
	}

	public String getFpd_detno() {
		return fpd_detno;
	}

	public void setFpd_detno(String fpd_detno) {
		this.fpd_detno = fpd_detno;
	}

	@JsonIgnore
	@JSONField(serialize = false)
	public FeePlease getFeePlease() {
		return feePlease;
	}

	public void setFeePlease(FeePlease feePlease) {
		this.feePlease = feePlease;
	}

	public String getFpd_location() {
		return fpd_location;
	}

	public void setFpd_location(String fpd_location) {
		this.fpd_location = fpd_location;
	}

	public String getFpd_address() {
		return fpd_address;
	}

	public void setFpd_address(String fpd_address) {
		this.fpd_address = fpd_address;
	}

}
