Salman Manoe 42fa923b1a Update domain entity
Penerapan lombok untuk mengurangi boilerplate code
2025-02-20 15:08:40 +07:00

45 lines
1.3 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 ProsesLahirBayi
*
* @author Generator
*/
@Getter
@Setter
@Entity
@Table(name = "ProsesLahirBayi_M")
public class ProsesLahirBayi extends BaseMaster {
@NotNull(message = "Kd Proses Lahir Bayi tidak boleh kosong")
@Column(name = "KdProsesLahirBayi", nullable = false)
@Caption(value = "Kode Proses Lahir Bayi")
private Byte kdProsesLahirBayi;
@NotNull(message = "Proses Lahir Bayi tidak boleh kosong")
@Column(name = "ProsesLahirBayi", nullable = false, length = 30)
@Caption(value = "Proses Lahir Bayi")
private String prosesLahirBayi;
@NotNull(message = "QProses Lahir Bayi tidak boleh kosong")
@Column(name = "QProsesLahirBayi", nullable = false)
@Caption(value = "QProses Lahir Bayi")
private Byte qProsesLahirBayi;
@Id
@GeneratedValue(strategy = SEQUENCE, generator = "public.proseslahirbayi_m_id_seq")
@SequenceGenerator(name = "public.proseslahirbayi_m_id_seq", sequenceName = "public.proseslahirbayi_m_id_seq", allocationSize = 1)
@Column(name = "id")
protected Integer id;
}