Salman Manoe 629b97dd34 Update domain entity
Penerapan lombok untuk mengurangi boilerplate code
2025-02-25 15:40:44 +07:00

45 lines
1.2 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 TandaGejala
*
* @author Generator
*/
@Getter
@Setter
@Entity
@Table(name = "TandaGejala_M")
public class TandaGejala extends BaseMaster {
@NotNull(message = "Kd Tanda Gejala tidak boleh kosong")
@Column(name = "KdTandaGejala", nullable = false)
@Caption(value = "Kode Tanda Gejala")
private Byte kdTandaGejala;
@NotNull(message = "QTanda Gejala tidak boleh kosong")
@Column(name = "QTandaGejala", nullable = false)
@Caption(value = "QTanda Gejala")
private Byte qTandaGejala;
@NotNull(message = "Tanda Gejala tidak boleh kosong")
@Column(name = "TandaGejala", nullable = false, length = 50)
@Caption(value = "Tanda Gejala")
private String tandaGejala;
@Id
@GeneratedValue(strategy = SEQUENCE, generator = "public.tandagejala_m_id_seq")
@SequenceGenerator(name = "public.tandagejala_m_id_seq", sequenceName = "public.tandagejala_m_id_seq", allocationSize = 1)
@Column(name = "id")
protected Integer id;
}