86 lines
2.2 KiB
Java
86 lines
2.2 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.CascadeType;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.OneToOne;
|
|
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="PapGigiKiriDua_T")
|
|
public class PapGigiKiriDua extends BaseTransaction{
|
|
@JsonBackReference
|
|
@OneToOne(cascade=CascadeType.ALL)
|
|
@JoinColumn(name = "ObjectPapGigiMulutFk")
|
|
@NotNull(message = "PapGigiMulut tidak boleh kosong")
|
|
private PapGigiMulut papGigiMulut;
|
|
|
|
@Column(name = "ObjectPapGigiMulutFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
|
|
private String papGigiMulutId;
|
|
|
|
@Column(name = "limasatu", nullable = true)
|
|
@Caption(value = "limasatu")
|
|
private String limasatu;
|
|
|
|
@Column(name = "limadua", nullable = true)
|
|
@Caption(value = "limadua")
|
|
private String limadua;
|
|
|
|
@Column(name = "limatiga", nullable = true)
|
|
@Caption(value = "limatiga")
|
|
private String limatiga;
|
|
|
|
@Column(name = "limaempat", nullable = true)
|
|
@Caption(value = "limaempat")
|
|
private String limaempat;
|
|
|
|
@Column(name = "limalima", nullable = true)
|
|
@Caption(value = "limalima")
|
|
private String limalima;
|
|
|
|
public String getLimasatu() {
|
|
return limasatu;
|
|
}
|
|
public void setLimasatu(String limasatu) {
|
|
this.limasatu = limasatu;
|
|
}
|
|
public String getLimadua() {
|
|
return limadua;
|
|
}
|
|
public void setLimadua(String limadua) {
|
|
this.limadua = limadua;
|
|
}
|
|
public String getLimatiga() {
|
|
return limatiga;
|
|
}
|
|
public void setLimatiga(String limatiga) {
|
|
this.limatiga = limatiga;
|
|
}
|
|
public String getLimaempat() {
|
|
return limaempat;
|
|
}
|
|
public void setLimaempat(String limaempat) {
|
|
this.limaempat = limaempat;
|
|
}
|
|
public String getLimalima() {
|
|
return limalima;
|
|
}
|
|
public void setLimalima(String limalima) {
|
|
this.limalima = limalima;
|
|
}
|
|
public PapGigiMulut getPapGigiMulut() {
|
|
return papGigiMulut;
|
|
}
|
|
public void setPapGigiMulut(PapGigiMulut papGigiMulut) {
|
|
this.papGigiMulut = papGigiMulut;
|
|
}
|
|
|
|
}
|