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 CaraLahirBayi * * @author Generator */ @Getter @Setter @Entity @Table(name = "CaraLahirBayi_M") public class CaraLahirBayi extends BaseMaster { @NotNull(message = "Cara Lahir Bayi tidak boleh kosong") @Column(name = "CaraLahirBayi", nullable = false, length = 30) @Caption(value = "Cara Lahir Bayi") private String caraLahirBayi; @NotNull(message = "Kd Cara Lahir Bayi tidak boleh kosong") @Column(name = "KdCaraLahirBayi", nullable = false) @Caption(value = "Kode Cara Lahir Bayi") private Byte kdCaraLahirBayi; @NotNull(message = "QCara Lahir Bayi tidak boleh kosong") @Column(name = "QCaraLahirBayi", nullable = false) @Caption(value = "QCara Lahir Bayi") private Byte qCaraLahirBayi; @Id @GeneratedValue(strategy = SEQUENCE, generator = "public.caralahirbayi_m_id_seq") @SequenceGenerator(name = "public.caralahirbayi_m_id_seq", sequenceName = "public.caralahirbayi_m_id_seq", allocationSize = 1) @Column(name = "id") protected Integer id; }