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 JenisPendidikan
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "JenisPendidikan_M")
public class JenisPendidikan extends BaseMaster {

	@NotNull(message = "Jenis Pendidikan tidak boleh kosong")
	@Column(name = "JenisPendidikan", nullable = false, length = 30)
	@Caption(value = "Jenis Pendidikan")
	private String jenisPendidikan;

	@NotNull(message = "Kd Jenis Pendidikan tidak boleh kosong")
	@Column(name = "KdJenisPendidikan", nullable = false, length = 1)
	@Caption(value = "Kode Jenis Pendidikan")
	private String kdJenisPendidikan;

	@NotNull(message = "QJenis Pendidikan tidak boleh kosong")
	@Column(name = "QJenisPendidikan", nullable = false)
	@Caption(value = "QJenis Pendidikan")
	private Byte qJenisPendidikan;

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

}