62 lines
1.4 KiB
Java
62 lines
1.4 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import org.hibernate.envers.Audited;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
|
|
@Entity
|
|
//@Audited
|
|
@Table(name = "PengobatanKhusus_T")
|
|
public class PengobatanKhususDetail extends BaseTransaction {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "PengobatanKhususFk")
|
|
@NotNull(message = "Pengobatan Khusus tidak boleh kosong")
|
|
private PengobatanKhususCheckIn pengobatanKhusus;
|
|
|
|
// @Column(name = "PengobatanKhususFk", insertable=false,updatable=false)
|
|
// private Integer pengobatanKhususId;
|
|
@Column(name = "value", nullable = true)
|
|
private String value;
|
|
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "CheckInFk")
|
|
@NotNull(message = "CheckIn tidak boleh kosong")
|
|
private CheckIn checkIn;
|
|
|
|
|
|
|
|
public PengobatanKhususCheckIn getPengobatanKhusus() {
|
|
return pengobatanKhusus;
|
|
}
|
|
|
|
public void setPengobatanKhusus(PengobatanKhususCheckIn pengobatanKhusus) {
|
|
this.pengobatanKhusus = pengobatanKhusus;
|
|
}
|
|
|
|
public CheckIn getCheckIn() {
|
|
return checkIn;
|
|
}
|
|
|
|
public void setCheckIn(CheckIn checkIn) {
|
|
this.checkIn = checkIn;
|
|
}
|
|
|
|
|
|
}
|