40 lines
1.0 KiB
Java
40 lines
1.0 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseActive;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
import org.hibernate.validator.constraints.NotBlank;
|
|
|
|
import javax.persistence.*;
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.Size;
|
|
|
|
/**
|
|
* @author Salman
|
|
* @version 1.0.0
|
|
* @since 2/21/2025
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(schema = "public", name = "sdm_pppk_golongan_m")
|
|
public class GolonganPPPK extends BaseActive {
|
|
|
|
@Id
|
|
@GeneratedValue(generator = "UUID")
|
|
@GenericGenerator(name = "UUID", strategy = "uuid")
|
|
@Column(columnDefinition = "char(36)", updatable = false, nullable = false)
|
|
private String id;
|
|
|
|
@Size(max = 10, message = "Nama golongan maksimal {max} karakter")
|
|
@NotBlank(message = "Kode golongan tidak boleh kosong")
|
|
@Column(length = 10, nullable = false)
|
|
private String namaGolongan;
|
|
|
|
@NotNull(message = "Konversi angka arab tidak boleh kosong")
|
|
@Column(nullable = false)
|
|
private Integer konversi;
|
|
|
|
}
|