68 lines
1.6 KiB
Java
68 lines
1.6 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.*;
|
|
import javax.validation.constraints.NotNull;
|
|
import java.util.Date;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "PencatatanSuhuMesin_T")
|
|
public class PencatatanSuhuMesin extends BaseTransaction {
|
|
|
|
@Column(name = "Tanggal")
|
|
@Caption(value = "Tanggal")
|
|
private Date tanggal;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectMesinFk")
|
|
@NotNull(message = "Mesin tidak boleh kosong")
|
|
@Caption(value = "Object Mesin")
|
|
private Mesin mesin;
|
|
|
|
@Column(name = "ObjectMesinFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer mesinId;
|
|
|
|
@Column(name = "ProgramMesin")
|
|
@Caption(value = "Program Mesin")
|
|
private String programMesin;
|
|
|
|
@Column(name = "WaktuMulai")
|
|
@Caption(value = "Waktu Mulai")
|
|
private String waktuMulai;
|
|
|
|
@Column(name = "WaktuSelesai")
|
|
@Caption(value = "Waktu Selesai")
|
|
private String waktuSelesai;
|
|
|
|
@Column(name = "Suhu")
|
|
@Caption(value = "Suhu")
|
|
private String suhu;
|
|
|
|
@Column(name = "Tekanan")
|
|
@Caption(value = "Tekanan")
|
|
private String tekanan;
|
|
|
|
@Column(name = "LamaProses")
|
|
@Caption(value = "Lama Proses")
|
|
private String lamaProses;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectPetugasFk")
|
|
@NotNull(message = "Petugas tidak boleh kosong")
|
|
@Caption(value = "Object Petugas")
|
|
private Pegawai petugas;
|
|
|
|
@Column(name = "ObjectPetugasFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer petugasId;
|
|
|
|
@Column(name = "Keterangan", length = 60)
|
|
private String keterangan;
|
|
|
|
}
|