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

54 lines
1.5 KiB
Java

package com.jasamedika.medifirst2000.entities;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;
@Entity //@Audited
@Table(name = "MasalahKeperawatan_T")
public class MasalahKeperawatan extends MedicalRecordTransaction {
/**
* @author Shakato
*/
@JsonBackReference
@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "masalahKeperawatan")
private Set<MasalahKeperawatanDetail> masalahKeperawatanDetail=new HashSet<MasalahKeperawatanDetail>();
@Column(name = "tglInput", nullable = true)
@Caption(value = "Tgl Input")
private Date tglInput;
public Date getTglInput() {
return tglInput;
}
public void setTglInput(Date tglInput) {
this.tglInput = tglInput;
}
public Set<MasalahKeperawatanDetail> getMasalahKeperawatanDetail() {
return masalahKeperawatanDetail;
}
public void setMasalahKeperawatanDetail(Set<MasalahKeperawatanDetail> masalahKeperawatanDetail) {
this.masalahKeperawatanDetail = masalahKeperawatanDetail;
}
}