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.helper.Caption;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Table(name = "JenisPengadaan_M")
public class JenisPengadaan extends BaseMaster {

	//private static final long serialVersionUID = 2076731882430464507L;

	@Column(name = "KodeJenisPengadaan", nullable = true)
	@NotNull(message = "Kode Jenis Pengadaan tidak boleh kosong")
	@Caption(value = "Kode Jenis Pengadaan")
	private String kodeJenisPengadaan;

	@NotNull(message = "Nama Jenis Pengadaan tidak boleh kosong")
	@Caption(value = "Nama Jenis Pengadaan")
	@Column(name = "NamaJenisPengadaan", nullable = false, length = 50)
	private String namaJenisPengadaan;

	@Column(name = "KeteranganJenisPengadaan", nullable = true)
	@NotNull(message = "Keterangan Jenis Pengadaan tidak boleh kosong")
	@Caption(value = "Keterangan Jenis Pengadaan")
	private String ketJenisPengadaan;

	public String getNamaJenisPengadaan() {
		return namaJenisPengadaan;
	}

	public String getKodeJenisPengadaan() {
		return kodeJenisPengadaan;
	}

	public void setKodeJenisPengadaan(String kodeJenisPengadaan) {
		this.kodeJenisPengadaan = kodeJenisPengadaan;
	}

	public String getKetJenisPengadaan() {
		return ketJenisPengadaan;
	}

	public void setKetJenisPengadaan(String ketJenisPengadaan) {
		this.ketJenisPengadaan = ketJenisPengadaan;
	}

	public void setNamaJenisPengadaan(String namaJenisPengadaan) {
		this.namaJenisPengadaan = namaJenisPengadaan;
	}

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

	public Integer getId() {

		return id;
	}

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