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.envers.Audited;
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 Rhesus
 * 
 * @author Shakato
 */
@Entity // @Audited

@Table(name = "Rhesus_m")
public class Rhesus extends BaseMaster {
	@NotNull(message = "Rhesus tidak boleh kosong")
	@Column(name = "Rhesus", nullable = false, length = 7)
	@Caption(value = "Rhesus")
	private String Rhesus;

	@NotNull(message = "Kd Rhesus tidak boleh kosong")
	@Column(name = "KdRhesus", nullable = false)
	@Caption(value = "Kode Rhesus")
	private Byte kdRhesus;

	@NotNull(message = "QRhesus tidak boleh kosong")
	@Column(name = "QRhesus", nullable = false)
	@Caption(value = "QRhesus")
	private Byte qRhesus;

	public String getRhesus() {
		return Rhesus;
	}

	public void setRhesus(String rhesus) {
		Rhesus = rhesus;
	}

	public Byte getKdRhesus() {
		return kdRhesus;
	}

	public void setKdRhesus(Byte kdRhesus) {
		this.kdRhesus = kdRhesus;
	}

	public Byte getqRhesus() {
		return qRhesus;
	}

	public void setqRhesus(Byte qRhesus) {
		this.qRhesus = qRhesus;
	}

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

	public Integer getId() {

		return id;
	}

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