83 lines
2.5 KiB
Java
83 lines
2.5 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import java.io.Serializable;
|
|
import org.hibernate.envers.Audited;
|
|
import javax.persistence.*;
|
|
|
|
import org.hibernate.validator.constraints.NotEmpty;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
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.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import org.hibernate.envers.Audited;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
|
|
/**
|
|
* class SiklusPengobatanBayiTabung
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "SiklusPengobatanBayiTabung_M")
|
|
public class SiklusPengobatanBayiTabung extends BaseMaster {
|
|
@NotNull(message = "Kd Siklus Pengobatan B T tidak boleh kosong")
|
|
@Column(name = "KdSiklusPengobatanBT", nullable = false)
|
|
@Caption(value = "Kode Siklus Pengobatan B T")
|
|
private Byte kdSiklusPengobatanBT;
|
|
|
|
public void setKdSiklusPengobatanBT(Byte kdSiklusPengobatanBT) {
|
|
this.kdSiklusPengobatanBT = kdSiklusPengobatanBT;
|
|
}
|
|
|
|
public Byte getKdSiklusPengobatanBT() {
|
|
return this.kdSiklusPengobatanBT;
|
|
}
|
|
|
|
@NotNull(message = "QSiklus Pengobatan B T tidak boleh kosong")
|
|
@Column(name = "QSiklusPengobatanBT", nullable = false)
|
|
@Caption(value = "QSiklus Pengobatan B T")
|
|
private Byte qSiklusPengobatanBT;
|
|
|
|
public void setqSiklusPengobatanBT(Byte qSiklusPengobatanBT) {
|
|
this.qSiklusPengobatanBT = qSiklusPengobatanBT;
|
|
}
|
|
|
|
public Byte getqSiklusPengobatanBT() {
|
|
return this.qSiklusPengobatanBT;
|
|
}
|
|
|
|
@NotNull(message = "Siklus Pengobatan B T tidak boleh kosong")
|
|
@Column(name = "SiklusPengobatanBT", nullable = false, length = 75)
|
|
@Caption(value = "Siklus Pengobatan B T")
|
|
private String siklusPengobatanBT;
|
|
|
|
public void setSiklusPengobatanBT(String siklusPengobatanBT) {
|
|
this.siklusPengobatanBT = siklusPengobatanBT;
|
|
}
|
|
|
|
public String getSiklusPengobatanBT() {
|
|
return this.siklusPengobatanBT;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.sikluspengobatanbayitabung_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.sikluspengobatanbayitabung_m_id_seq", sequenceName = "public.sikluspengobatanbayitabung_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |