package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Table(name = "UnitPengelolaPrakarsaSurat_M")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class UnitPengelolaPrakarsaSurat extends BaseMaster {

	@ManyToOne
	@JoinColumn(name = "ObjectUnitPengelolaPrakarsaSuratHead")
	@Caption(value = "Klasifikasi Arsip")
	private UnitPengelolaPrakarsaSurat unitPengelolaPrakarsaSurat;

	@Column(name = "ObjectUnitPengelolaPrakarsaSuratHead", insertable = false, updatable = false, nullable = true)
	private Integer unitPengelolaPrakarsaSuratId;

	@Column(name = "unitKerja", nullable = true, length = 100)
	@Caption(value = "unitKerja")
	private String unitKerja;

	@Column(name = "kodeUnitPengelolaPrakarsaSurat", nullable = true, length = 100)
	@Caption(value = "kode Unit Pengelola Prakarsa Surat")
	private String kodeUnitPengelolaPrakarsaSurat;

	public UnitPengelolaPrakarsaSurat getUnitPengelolaPrakarsaSurat() {
		return unitPengelolaPrakarsaSurat;
	}

	public void setUnitPengelolaPrakarsaSurat(UnitPengelolaPrakarsaSurat unitPengelolaPrakarsaSurat) {
		this.unitPengelolaPrakarsaSurat = unitPengelolaPrakarsaSurat;
	}

	public Integer getUnitPengelolaPrakarsaSuratId() {
		return unitPengelolaPrakarsaSuratId;
	}

	public void setUnitPengelolaPrakarsaSuratId(Integer unitPengelolaPrakarsaSuratId) {
		this.unitPengelolaPrakarsaSuratId = unitPengelolaPrakarsaSuratId;
	}

	public String getUnitKerja() {
		return unitKerja;
	}

	public void setUnitKerja(String unitKerja) {
		this.unitKerja = unitKerja;
	}

	public String getKodeUnitPengelolaPrakarsaSurat() {
		return kodeUnitPengelolaPrakarsaSurat;
	}

	public void setKodeUnitPengelolaPrakarsaSurat(String kodeUnitPengelolaPrakarsaSurat) {
		this.kodeUnitPengelolaPrakarsaSurat = kodeUnitPengelolaPrakarsaSurat;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.unitpengelolaprakarsasurat_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.unitpengelolaprakarsasurat_m_id_seq", sequenceName = "public.unitpengelolaprakarsasurat_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

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