83 lines
2.3 KiB
Java
83 lines
2.3 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 JenisPengantarPasien
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "JenisPengantarPasien_M")
|
|
public class JenisPengantarPasien extends BaseMaster {
|
|
@NotNull(message = "Jenis Pengantar tidak boleh kosong")
|
|
@Column(name = "JenisPengantar", nullable = false, length = 30)
|
|
@Caption(value = "Jenis Pengantar")
|
|
private String jenisPengantar;
|
|
|
|
public void setJenisPengantar(String jenisPengantar) {
|
|
this.jenisPengantar = jenisPengantar;
|
|
}
|
|
|
|
public String getJenisPengantar() {
|
|
return this.jenisPengantar;
|
|
}
|
|
|
|
@NotNull(message = "Kd Jenis Pengantar tidak boleh kosong")
|
|
@Column(name = "KdJenisPengantar", nullable = false)
|
|
@Caption(value = "Kode Jenis Pengantar")
|
|
private Byte kdJenisPengantar;
|
|
|
|
public void setKdJenisPengantar(Byte kdJenisPengantar) {
|
|
this.kdJenisPengantar = kdJenisPengantar;
|
|
}
|
|
|
|
public Byte getKdJenisPengantar() {
|
|
return this.kdJenisPengantar;
|
|
}
|
|
|
|
@NotNull(message = "QJenis Pengantar tidak boleh kosong")
|
|
@Column(name = "QJenisPengantar", nullable = false)
|
|
@Caption(value = "QJenis Pengantar")
|
|
private Byte qJenisPengantar;
|
|
|
|
public void setqJenisPengantar(Byte qJenisPengantar) {
|
|
this.qJenisPengantar = qJenisPengantar;
|
|
}
|
|
|
|
public Byte getqJenisPengantar() {
|
|
return this.qJenisPengantar;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenispengantarpasien_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.jenispengantarpasien_m_id_seq", sequenceName = "public.jenispengantarpasien_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |