package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class JenisResep
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "JenisResep_M")
public class JenisResep extends BaseMaster {
	@NotNull(message = "Jenis Resep tidak boleh kosong")
	@Column(name = "JenisResep", nullable = false, length = 15)
	@Caption(value = "Jenis Resep")
	private String jenisResep;

	public void setJenisResep(String jenisResep) {
		this.jenisResep = jenisResep;
	}

	public String getJenisResep() {
		return this.jenisResep;
	}

	@NotNull(message = "Kd Jenis Resep tidak boleh kosong")
	@Column(name = "KdJenisResep", nullable = false)
	@Caption(value = "Kode Jenis Resep")
	private Byte kdJenisResep;

	public void setKdJenisResep(Byte kdJenisResep) {
		this.kdJenisResep = kdJenisResep;
	}

	public Byte getKdJenisResep() {
		return this.kdJenisResep;
	}

	@NotNull(message = "QJenis Resep tidak boleh kosong")
	@Column(name = "QJenisResep", nullable = false)
	@Caption(value = "QJenis Resep")
	private Byte qJenisResep;

	public void setqJenisResep(Byte qJenisResep) {
		this.qJenisResep = qJenisResep;
	}

	public Byte getqJenisResep() {
		return this.qJenisResep;
	}

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

	public Integer getId() {

		return id;
	}

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