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 = "JenisBelanja_M")
public class JenisBelanja extends BaseMaster {

	//private static final long serialVersionUID = 3471896142381808934L;

	@Column(name = "KodeJenisBelanja", nullable = true)
	@NotNull(message = "Kode Jenis Belanja tidak boleh kosong")
	@Caption(value = "Kode Jenis Belanja")
	private String kodeJenisBelanja;

	@NotNull(message = "Jenis Belanja tidak boleh kosong")
	@Caption(value = "Jenis Belanja")
	@Column(name = "JenisBelanja", nullable = false, length = 50)
	private String namaJenisBelanja;

	@Column(name = "KeteranganJenisBelanja", nullable = true)
	@NotNull(message = "Keterangan Jenis Belanja tidak boleh kosong")
	@Caption(value = "Keterangan Jenis Belanja")
	private String ketJenisBelanja;

	public String getNamaJenisBelanja() {
		return namaJenisBelanja;
	}

	public void setNamaJenisBelanja(String namaJenisBelanja) {
		this.namaJenisBelanja = namaJenisBelanja;
	}

	public String getKodeJenisBelanja() {
		return kodeJenisBelanja;
	}

	public void setKodeJenisBelanja(String kodeJenisBelanja) {
		this.kodeJenisBelanja = kodeJenisBelanja;
	}

	public String getKetJenisBelanja() {
		return ketJenisBelanja;
	}

	public void setKetJenisBelanja(String ketJenisBelanja) {
		this.ketJenisBelanja = ketJenisBelanja;
	}

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

	public Integer getId() {

		return id;
	}

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