package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import static javax.persistence.GenerationType.SEQUENCE;

/**
 * class JenisProfile
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "JenisProfile_M")
public class JenisProfile extends BaseMaster {

	@NotNull(message = "Jenis Profile tidak boleh kosong")
	@Column(name = "JenisProfile", nullable = false, length = 30)
	@Caption(value = "Jenis Profile")
	private String jenisProfile;

	@NotNull(message = "Kd Jenis Profile tidak boleh kosong")
	@Column(name = "KdJenisProfile", nullable = false)
	@Caption(value = "Kode Jenis Profile")
	private Byte kdJenisProfile;

	@NotNull(message = "QJenis Profile tidak boleh kosong")
	@Column(name = "QJenisProfile", nullable = false)
	@Caption(value = "QJenis Profile")
	private Byte qJenisProfile;

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

}