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 StatusKontras
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "StatusKontras_M")
public class StatusKontras extends BaseMaster {
	@NotNull(message = "Kd Status Kontras tidak boleh kosong")
	@Column(name = "KdStatusKontras", nullable = false)
	@Caption(value = "Kode Status Kontras")
	private Byte kdStatusKontras;

	public void setKdStatusKontras(Byte kdStatusKontras) {
		this.kdStatusKontras = kdStatusKontras;
	}

	public Byte getKdStatusKontras() {
		return this.kdStatusKontras;
	}

	@NotNull(message = "QStatus Kontras tidak boleh kosong")
	@Column(name = "QStatusKontras", nullable = false)
	@Caption(value = "QStatus Kontras")
	private Byte qStatusKontras;

	public void setqStatusKontras(Byte qStatusKontras) {
		this.qStatusKontras = qStatusKontras;
	}

	public Byte getqStatusKontras() {
		return this.qStatusKontras;
	}

	@NotNull(message = "Status Kontras tidak boleh kosong")
	@Column(name = "StatusKontras", nullable = false, length = 20)
	@Caption(value = "Status Kontras")
	private String statusKontras;

	public void setStatusKontras(String statusKontras) {
		this.statusKontras = statusKontras;
	}

	public String getStatusKontras() {
		return this.statusKontras;
	}

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

	public Integer getId() {

		return id;
	}

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