package com.jasamedika.medifirst2000.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import javax.validation.constraints.NotNull; 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 Radiologi * * @author Generator */ @Entity // @Audited @Table(name = "RM_Radiologi_M") public class Radiologi extends BaseMaster { @NotNull(message = "KdJenisProduk tidak boleh kosong") @Column(name = "KdJenisProduk", nullable = false, length = 100) @Caption(value = "KdJenisProduk") private String kdJenisProduk; public void setKdJenisProduk(String kdJenisProduk) { this.kdJenisProduk = kdJenisProduk; } public String getKdJenisProduk() { return this.kdJenisProduk; } @NotNull(message = "JenisProduk tidak boleh kosong") @Column(name = "JenisProduk", nullable = false, length = 100) @Caption(value = "JenisProduk") private String jenisProduk; public void setJenisProduk(String jenisProduk) { this.jenisProduk = jenisProduk; } public String getJenisProduk() { return this.jenisProduk; } @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.radiologi_m_id_seq") @javax.persistence.SequenceGenerator(name = "public.radiologi_m_id_seq", sequenceName = "public.radiologi_m_id_seq", allocationSize = 1) @Column(name = "id") protected Integer id; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }