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

	public void setKdStatusAkreditasi(Byte kdStatusAkreditasi) {
		this.kdStatusAkreditasi = kdStatusAkreditasi;
	}

	public Byte getKdStatusAkreditasi() {
		return this.kdStatusAkreditasi;
	}

	@NotNull(message = "QStatus Akreditasi tidak boleh kosong")
	@Column(name = "QStatusAkreditasi", nullable = false)
	@Caption(value = "QStatus Akreditasi")
	private Byte qStatusAkreditasi;

	public void setqStatusAkreditasi(Byte qStatusAkreditasi) {
		this.qStatusAkreditasi = qStatusAkreditasi;
	}

	public Byte getqStatusAkreditasi() {
		return this.qStatusAkreditasi;
	}

	@NotNull(message = "Status Akreditasi tidak boleh kosong")
	@Column(name = "StatusAkreditasi", nullable = false, length = 30)
	@Caption(value = "Status Akreditasi")
	private String statusAkreditasi;

	public void setStatusAkreditasi(String statusAkreditasi) {
		this.statusAkreditasi = statusAkreditasi;
	}

	public String getStatusAkreditasi() {
		return this.statusAkreditasi;
	}

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

	public Integer getId() {

		return id;
	}

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