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.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

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

@Entity
@Table(name = "produkperawat_m")
public class ProdukPerawat extends BaseActive {

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

	@Column(name = "klasifikasi", nullable = true)
	@Caption(value = "klasifikasi")
	private Short klasifikasi;

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

	public String getNamaProduk() {
		return namaProduk;
	}

	public void setNamaProduk(String namaProduk) {
		this.namaProduk = namaProduk;
	}

	public Short getKlasifikasi() {
		return klasifikasi;
	}

	public void setKlasifikasi(Short klasifikasi) {
		this.klasifikasi = klasifikasi;
	}

	public Integer getId() {
		return id;
	}

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

}
