Update domain golongan pppk
Penambahan konversi angka arab untuk golongan PPPK
This commit is contained in:
parent
3e37a8e3dd
commit
6ef9773eb7
@ -7,6 +7,7 @@ import org.hibernate.annotations.GenericGenerator;
|
|||||||
import org.hibernate.validator.constraints.NotBlank;
|
import org.hibernate.validator.constraints.NotBlank;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -31,4 +32,8 @@ public class GolonganPPPK extends BaseActive {
|
|||||||
@Column(length = 10, nullable = false)
|
@Column(length = 10, nullable = false)
|
||||||
private String namaGolongan;
|
private String namaGolongan;
|
||||||
|
|
||||||
|
@NotNull(message = "Konversi angka arab tidak boleh kosong")
|
||||||
|
@Column(nullable = false)
|
||||||
|
private Integer konversi;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,8 @@ import com.jasamedika.medifirst2000.helper.Caption;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Salman
|
* @author Salman
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
@ -20,4 +22,7 @@ public class GolonganPPPKVO extends BaseActiveVO {
|
|||||||
@Caption(value = "Nama Golongan")
|
@Caption(value = "Nama Golongan")
|
||||||
private String namaGolongan;
|
private String namaGolongan;
|
||||||
|
|
||||||
|
@NotNull(message = "Konversi angka arab tidak boleh kosong")
|
||||||
|
private Integer konversi;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user