2021-01-07 11:34:56 +07:00

123 lines
3.4 KiB
Java

package com.jasamedika.medifirst2000.vo;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
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.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;
/**
* class Diagnosa
*
* @author Generator
*/
//@Entity
//@Table(name = "Diagnosa_M")
public class DiagnosaVO extends BaseMasterVO {
@Caption(value = "Kode Diagnosa")
private String kdDiagnosa;
public void setKdDiagnosa(String kdDiagnosa) {
this.kdDiagnosa = kdDiagnosa;
}
@Column(name = "KdDiagnosa", nullable = false, length = 10)
public String getKdDiagnosa() {
return this.kdDiagnosa;
}
@ManyToOne
@JoinColumn(name = "ObjectJenisKelaminFk")
@Caption(value = "Object Jenis Kelamin")
private JenisKelaminVO jenisKelamin;
public void setJenisKelamin(JenisKelaminVO jenisKelamin) {
this.jenisKelamin = jenisKelamin;
}
@Column(name = "KdJenisKelamin", nullable = true)
public JenisKelaminVO getJenisKelamin() {
return this.jenisKelamin;
}
@Column(name = "ObjectJenisKelaminFk", insertable = false, updatable = false)
private Integer jenisKelaminId;
@ManyToOne
@JoinColumn(name = "ObjectKategoryDiagnosaFk")
@Caption(value = "Object Kategory Diagnosa")
private KategoryDiagnosaVO kategoryDiagnosa;
public void setKategoryDiagnosa(KategoryDiagnosaVO kategoryDiagnosa) {
this.kategoryDiagnosa = kategoryDiagnosa;
}
@Column(name = "KdKategoryDiagnosa", nullable = true, length = 10)
public KategoryDiagnosaVO getKategoryDiagnosa() {
return this.kategoryDiagnosa;
}
@Column(name = "ObjectKategoryDiagnosaFk", insertable = false, updatable = false)
private Integer kategoryDiagnosaId;
@Caption(value = "Nama Diagnosa")
private String namaDiagnosa;
public void setNamaDiagnosa(String namaDiagnosa) {
this.namaDiagnosa = namaDiagnosa;
}
@Column(name = "NamaDiagnosa", nullable = false, length = 150)
public String getNamaDiagnosa() {
return this.namaDiagnosa;
}
@Caption(value = "QDiagnosa")
private Integer qDiagnosa;
public void setqDiagnosa(Integer qDiagnosa) {
this.qDiagnosa = qDiagnosa;
}
@Column(name = "QDiagnosa", nullable = false)
public Integer getqDiagnosa() {
return this.qDiagnosa;
}
/*//
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "kddiagnosakep")
private Set<DiagnosaKeperawatan> DiagnosaKeperawatanSet = new HashSet<DiagnosaKeperawatan>();
//
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "kddiagnosatindakan")
private Set<DiagnosaTindakan> DiagnosaTindakanSet = new HashSet<DiagnosaTindakan>();
public Set<DiagnosaTindakan> getDiagnosaTindakanSet() {
return DiagnosaTindakanSet;
}
public void setDiagnosaTindakanSet(Set<DiagnosaTindakan> diagnosaTindakanSet) {
DiagnosaTindakanSet = diagnosaTindakanSet;
}
public Set<DiagnosaKeperawatan> getDiagnosaKeperawatanSet() {
return DiagnosaKeperawatanSet;
}
public void setDiagnosaKeperawatanSet(Set<DiagnosaKeperawatan> diagnosaKeperawatanSet) {
DiagnosaKeperawatanSet = diagnosaKeperawatanSet;
}*/
}