package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class RekananDetail
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "RekananDetail_M")
public class RekananDetailVO extends BaseMasterVO {
	@Caption(value="AlamatVO Email")
	private String alamatEmail;

	public void setAlamatEmail(String alamatEmail) {
		this.alamatEmail = alamatEmail;
	}

	@Column(name = "AlamatEmail", nullable = true , length = 50)
	public String getAlamatEmail(){
		return this.alamatEmail;
	}

	@Caption(value="Contact Person")
	private String contactPerson;

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	@Column(name = "ContactPerson", nullable = true , length = 80)
	public String getContactPerson(){
		return this.contactPerson;
	}

	@Caption(value="Faksimile")
	private String faksimile;

	public void setFaksimile(String faksimile) {
		this.faksimile = faksimile;
	}

	@Column(name = "Faksimile", nullable = true , length = 30)
	public String getFaksimile(){
		return this.faksimile;
	}

	@Caption(value="Fixed Phone")
	private String fixedPhone;

	public void setFixedPhone(String fixedPhone) {
		this.fixedPhone = fixedPhone;
	}

	@Column(name = "FixedPhone", nullable = true , length = 30)
	public String getFixedPhone(){
		return this.fixedPhone;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectRekananFk")
	@NotNull(message="Object RekananVO Harus Diisi")
	@Caption(value="Object Rekanan")
	private RekananVO rekanan;

	public void setRekanan(RekananVO rekanan) {
		this.rekanan = rekanan;
	}

	@Column(name = "KdRekanan", nullable = false )
	public RekananVO getRekanan(){
		return this.rekanan;
	}

	@Column(name = "ObjectRekananFk", insertable=false,updatable=false)
	private Integer rekananId;

	@ManyToOne
	@JoinColumn(name = "ObjectUnitBagianFk")
	@NotNull(message="Object Unit Bagian Harus Diisi")
	@Caption(value="Object Unit Bagian")
	private UnitBagianVO unitBagian;

	public void setUnitBagian(UnitBagianVO unitBagian) {
		this.unitBagian = unitBagian;
	}

	@Column(name = "KdUnitBagian", nullable = false )
	public UnitBagianVO getUnitBagian(){
		return this.unitBagian;
	}

	@Column(name = "ObjectUnitBagianFk", insertable=false,updatable=false)
	private Integer unitBagianId;

	@Caption(value="Keterangan Lainnya")
	private String keteranganLainnya;

	public void setKeteranganLainnya(String keteranganLainnya) {
		this.keteranganLainnya = keteranganLainnya;
	}

	@Column(name = "KeteranganLainnya", nullable = true , length = 150)
	public String getKeteranganLainnya(){
		return this.keteranganLainnya;
	}

	@Caption(value="Mobile Phone")
	private String mobilePhone;

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	@Column(name = "MobilePhone", nullable = true , length = 30)
	public String getMobilePhone(){
		return this.mobilePhone;
	}

	@Caption(value="No Kode_ Intern")
	private String noKode_Intern;

	public void setNoKode_Intern(String noKode_Intern) {
		this.noKode_Intern = noKode_Intern;
	}

	@Column(name = "NoKode_Intern", nullable = true , length = 15)
	public String getNoKode_Intern(){
		return this.noKode_Intern;
	}


}

