50 lines
1.5 KiB
Java
50 lines
1.5 KiB
Java
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 GolonganPegawai
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "GolonganPegawai_M")
|
|
public class GolonganPegawai extends BaseMaster {
|
|
|
|
@NotNull(message = "Golongan Pegawai tidak boleh kosong")
|
|
@Column(name = "GolonganPegawai", nullable = false, length = 20)
|
|
@Caption(value = "Golongan Pegawai")
|
|
private String golonganPegawai;
|
|
|
|
@NotNull(message = "Kd Golongan Pegawai tidak boleh kosong")
|
|
@Column(name = "KdGolonganPegawai", nullable = false)
|
|
@Caption(value = "Kode Golongan Pegawai")
|
|
private Byte kdGolonganPegawai;
|
|
|
|
@NotNull(message = "No Urut tidak boleh kosong")
|
|
@Column(name = "NoUrut", nullable = false)
|
|
@Caption(value = "No Urut")
|
|
private Byte noUrut;
|
|
|
|
@NotNull(message = "QGolongan Pegawai tidak boleh kosong")
|
|
@Column(name = "QGolonganPegawai", nullable = false)
|
|
@Caption(value = "QGolongan Pegawai")
|
|
private Byte qGolonganPegawai;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.golonganpegawai_m_id_seq")
|
|
@SequenceGenerator(name = "public.golonganpegawai_m_id_seq", sequenceName = "public.golonganpegawai_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |