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 JenisProfile * * @author Generator */ @Entity // @Audited @Table(name = "JenisProfile_M") public class JenisProfile extends BaseMaster { @NotNull(message = "Jenis Profile tidak boleh kosong") @Column(name = "JenisProfile", nullable = false, length = 30) @Caption(value = "Jenis Profile") private String jenisProfile; public void setJenisProfile(String jenisProfile) { this.jenisProfile = jenisProfile; } public String getJenisProfile() { return this.jenisProfile; } @NotNull(message = "Kd Jenis Profile tidak boleh kosong") @Column(name = "KdJenisProfile", nullable = false) @Caption(value = "Kode Jenis Profile") private Byte kdJenisProfile; public void setKdJenisProfile(Byte kdJenisProfile) { this.kdJenisProfile = kdJenisProfile; } public Byte getKdJenisProfile() { return this.kdJenisProfile; } @NotNull(message = "QJenis Profile tidak boleh kosong") @Column(name = "QJenisProfile", nullable = false) @Caption(value = "QJenis Profile") private Byte qJenisProfile; public void setqJenisProfile(Byte qJenisProfile) { this.qJenisProfile = qJenisProfile; } public Byte getqJenisProfile() { return this.qJenisProfile; } @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenisprofile_m_id_seq") @javax.persistence.SequenceGenerator(name = "public.jenisprofile_m_id_seq", sequenceName = "public.jenisprofile_m_id_seq", allocationSize = 1) @Column(name = "id") protected Integer id; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }