package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "IndikatorBIOS_M")
public class IndikatorBIOS extends BaseMaster {

	@NotNull(message = "indikator tidak boleh kosong")
	@Column(name = "indikator", nullable = false)
	@Caption(value = "indikator")
	private String indikator;

	@NotNull(message = "uraian tidak boleh kosong")
	@Column(name = "uraian", nullable = false)
	@Caption(value = "uraian")
	private String uraian;

	@NotNull(message = "nmrumpun tidak boleh kosong")
	@Column(name = "nmrumpun", nullable = false)
	@Caption(value = "nmrumpun")
	private String nmrumpun;

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

	public Integer getId() {
		return id;
	}

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

	public String getIndikator() {
		return indikator;
	}

	public void setIndikator(String indikator) {
		this.indikator = indikator;
	}

	public String getUraian() {
		return uraian;
	}

	public void setUraian(String uraian) {
		this.uraian = uraian;
	}

	public String getNmrumpun() {
		return nmrumpun;
	}

	public void setNmrumpun(String nmrumpun) {
		this.nmrumpun = nmrumpun;
	}

}
