package com.jasamedika.medifirst2000.entities;

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

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Table(name = "KemenLemb_M")
public class KemenLemb extends BaseMaster {

	@NotNull(message = "Kemen/Lemb boleh kosong")
	@Caption(value = "KemenLemb")
	@Column(name = "KemenLemb", nullable = true, length = 200)
	private String namaKemenLemb;

	@NotNull(message = "Kode Kemen/Lemb tidak boleh kosong")
	@Caption(value = "Kode Kemen/Lemb")
	@Column(name = "KodeKemenLemb", nullable = true, length = 50)
	private String kodeKemenLemb;

	@NotNull(message = "Keterangan tidak boleh kosong")
	@Caption(value = "Keterangan")
	@Column(name = "Keterangan", nullable = true, length = 200)
	private String ketKemenlemb;

	public String getNamaKemenLemb() {
		return namaKemenLemb;
	}

	public void setNamaKemenLemb(String namaKemenLemb) {
		this.namaKemenLemb = namaKemenLemb;
	}

	public String getKodeKemenLemb() {
		return kodeKemenLemb;
	}

	public void setKodeKemenLemb(String kodeKemenLemb) {
		this.kodeKemenLemb = kodeKemenLemb;
	}

	public String getKetKemenlemb() {
		return ketKemenlemb;
	}

	public void setKetKemenlemb(String ketKemenlemb) {
		this.ketKemenlemb = ketKemenlemb;
	}

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

	public Integer getId() {

		return id;
	}

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