83 lines
2.1 KiB
Java
83 lines
2.1 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 StatusBed
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "StatusBed_M")
|
|
public class StatusBed extends BaseMaster {
|
|
@NotNull(message = "Kd Status Bed tidak boleh kosong")
|
|
@Column(name = "KdStatusBed", nullable = false)
|
|
@Caption(value = "Kode Status Bed")
|
|
private Byte kdStatusBed;
|
|
|
|
public void setKdStatusBed(Byte kdStatusBed) {
|
|
this.kdStatusBed = kdStatusBed;
|
|
}
|
|
|
|
public Byte getKdStatusBed() {
|
|
return this.kdStatusBed;
|
|
}
|
|
|
|
@NotNull(message = "QStatus Bed tidak boleh kosong")
|
|
@Column(name = "QStatusBed", nullable = false)
|
|
@Caption(value = "QStatus Bed")
|
|
private Byte qStatusBed;
|
|
|
|
public void setqStatusBed(Byte qStatusBed) {
|
|
this.qStatusBed = qStatusBed;
|
|
}
|
|
|
|
public Byte getqStatusBed() {
|
|
return this.qStatusBed;
|
|
}
|
|
|
|
@NotNull(message = "Status Bed tidak boleh kosong")
|
|
@Column(name = "StatusBed", nullable = false, length = 30)
|
|
@Caption(value = "Status Bed")
|
|
private String statusBed;
|
|
|
|
public void setStatusBed(String statusBed) {
|
|
this.statusBed = statusBed;
|
|
}
|
|
|
|
public String getStatusBed() {
|
|
return this.statusBed;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.statusbed_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.statusbed_m_id_seq", sequenceName = "public.statusbed_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |