83 lines
2.6 KiB
Java
83 lines
2.6 KiB
Java
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 JenisPelayananProfile
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "JenisPelayananProfile_M")
|
|
public class JenisPelayananProfile extends BaseMaster {
|
|
@NotNull(message = "Jenis Pelayanan Profile tidak boleh kosong")
|
|
@Column(name = "JenisPelayananProfile", nullable = false, length = 50)
|
|
@Caption(value = "Jenis Pelayanan Profile")
|
|
private String jenisPelayananProfile;
|
|
|
|
public void setJenisPelayananProfile(String jenisPelayananProfile) {
|
|
this.jenisPelayananProfile = jenisPelayananProfile;
|
|
}
|
|
|
|
public String getJenisPelayananProfile() {
|
|
return this.jenisPelayananProfile;
|
|
}
|
|
|
|
@NotNull(message = "Kd Jenis Pelayanan Profile tidak boleh kosong")
|
|
@Column(name = "KdJenisPelayananProfile", nullable = false, length = 1)
|
|
@Caption(value = "Kode Jenis Pelayanan Profile")
|
|
private String kdJenisPelayananProfile;
|
|
|
|
public void setKdJenisPelayananProfile(String kdJenisPelayananProfile) {
|
|
this.kdJenisPelayananProfile = kdJenisPelayananProfile;
|
|
}
|
|
|
|
public String getKdJenisPelayananProfile() {
|
|
return this.kdJenisPelayananProfile;
|
|
}
|
|
|
|
@NotNull(message = "QJenis Pelayanan Profile tidak boleh kosong")
|
|
@Column(name = "QJenisPelayananProfile", nullable = false)
|
|
@Caption(value = "QJenis Pelayanan Profile")
|
|
private Byte qJenisPelayananProfile;
|
|
|
|
public void setqJenisPelayananProfile(Byte qJenisPelayananProfile) {
|
|
this.qJenisPelayananProfile = qJenisPelayananProfile;
|
|
}
|
|
|
|
public Byte getqJenisPelayananProfile() {
|
|
return this.qJenisPelayananProfile;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenispelayananprofile_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.jenispelayananprofile_m_id_seq", sequenceName = "public.jenispelayananprofile_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |