package com.jasamedika.medifirst2000.entities; import java.io.Serializable; import org.hibernate.envers.Audited; import javax.persistence.*; import org.hibernate.validator.constraints.NotEmpty; import com.jasamedika.medifirst2000.base.BaseMaster; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.Length; import org.hibernate.validator.internal.util.logging.Messages; import com.fasterxml.jackson.annotation.JsonManagedReference; import com.jasamedika.medifirst2000.base.BaseMaster; import com.jasamedika.medifirst2000.helper.Caption; import org.hibernate.envers.Audited; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; /** * class TandaGejala * * @author Generator */ @Entity // @Audited @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; public void setKdTandaGejala(Byte kdTandaGejala) { this.kdTandaGejala = kdTandaGejala; } public Byte getKdTandaGejala() { return this.kdTandaGejala; } @NotNull(message = "QTanda Gejala tidak boleh kosong") @Column(name = "QTandaGejala", nullable = false) @Caption(value = "QTanda Gejala") private Byte qTandaGejala; public void setqTandaGejala(Byte qTandaGejala) { this.qTandaGejala = qTandaGejala; } public Byte getqTandaGejala() { return this.qTandaGejala; } @NotNull(message = "Tanda Gejala tidak boleh kosong") @Column(name = "TandaGejala", nullable = false, length = 50) @Caption(value = "Tanda Gejala") private String tandaGejala; public void setandaGejala(String tandaGejala) { this.tandaGejala = tandaGejala; } public String getTandaGejala() { return this.tandaGejala; } @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.tandagejala_m_id_seq") @javax.persistence.SequenceGenerator(name = "public.tandagejala_m_id_seq", sequenceName = "public.tandagejala_m_id_seq", allocationSize = 1) @Column(name = "id") protected Integer id; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }