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

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

/**
 * class KelompokUser
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "KelompokUser_S")
public class KelompokUser extends BaseMaster {

	@NotNull(message = "Kd Kelompok User tidak boleh kosong")
	@Column(name = "KdKelompokUser", nullable = false)
	@Caption(value = "Kode Kelompok User")
	private Byte kdKelompokUser;

	public void setKdKelompokUser(Byte kdKelompokUser) {
		this.kdKelompokUser = kdKelompokUser;
	}

	public Byte getKdKelompokUser() {
		return this.kdKelompokUser;
	}

	@NotNull(message = "Kelompok User tidak boleh kosong")
	@Column(name = "KelompokUser", nullable = false, length = 20)
	@Caption(value = "Kelompok User")
	private String kelompokUser;

	public void setKelompokUser(String kelompokUser) {
		this.kelompokUser = kelompokUser;
	}

	public String getKelompokUser() {
		return this.kelompokUser;
	}

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

	public Integer getId() {

		return id;
	}

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