package com.jasamedika.medifirst2000.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.helper.Caption;

import lombok.Getter;
import lombok.Setter;

/**
 * @author salmanoe
 * @since Feb 24, 2023
 */
@Getter
@Setter
public class PegawaiDto {
	public PegawaiDto() {
	}

	@NotNull(message = "ID Pegawai tidak boleh null")
	@Caption(value = "ID Pegawai")
	private Integer id;

	@NotEmpty(message = "NIK harus diisi")
	@Pattern(regexp = "\\d{16}", message = "Format NIK tidak sesuai")
	@Caption(value = "NIK Pegawai")
	private String noIdentitas;
}
