121 lines
3.1 KiB
Java
121 lines
3.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 KelompokUmur
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "KelompokUmur_M")
|
|
public class KelompokUmur extends BaseMaster {
|
|
@NotNull(message = "Kd Kelompok Umur tidak boleh kosong")
|
|
@Column(name = "KdKelompokUmur", nullable = false)
|
|
@Caption(value = "Kode Kelompok Umur")
|
|
private Byte kdKelompokUmur;
|
|
|
|
public void setKdKelompokUmur(Byte kdKelompokUmur) {
|
|
this.kdKelompokUmur = kdKelompokUmur;
|
|
}
|
|
|
|
public Byte getKdKelompokUmur() {
|
|
return this.kdKelompokUmur;
|
|
}
|
|
|
|
@NotNull(message = "Kelompok Umur tidak boleh kosong")
|
|
@Column(name = "KelompokUmur", nullable = false, length = 20)
|
|
@Caption(value = "Kelompok Umur")
|
|
private String kelompokUmur;
|
|
|
|
public void setKelompokUmur(String kelompokUmur) {
|
|
this.kelompokUmur = kelompokUmur;
|
|
}
|
|
|
|
public String getKelompokUmur() {
|
|
return this.kelompokUmur;
|
|
}
|
|
|
|
@NotNull(message = "QKelompok Umur tidak boleh kosong")
|
|
@Column(name = "QKelompokUmur", nullable = false)
|
|
@Caption(value = "QKelompok Umur")
|
|
private Byte qKelompokUmur;
|
|
|
|
public void setqKelompokUmur(Byte qKelompokUmur) {
|
|
this.qKelompokUmur = qKelompokUmur;
|
|
}
|
|
|
|
public Byte getqKelompokUmur() {
|
|
return this.qKelompokUmur;
|
|
}
|
|
|
|
@Column(name = "StatusUmur", nullable = true, length = 2)
|
|
@Caption(value = "Status Umur")
|
|
private String statusUmur;
|
|
|
|
public void setStatusUmur(String statusUmur) {
|
|
this.statusUmur = statusUmur;
|
|
}
|
|
|
|
public String getStatusUmur() {
|
|
return this.statusUmur;
|
|
}
|
|
|
|
@NotNull(message = "Umur Max tidak boleh kosong")
|
|
@Column(name = "UmurMax", nullable = false)
|
|
@Caption(value = "Umur Max")
|
|
private Double umurMax;
|
|
|
|
public void setUmurMax(Double umurMax) {
|
|
this.umurMax = umurMax;
|
|
}
|
|
|
|
public Double getUmurMax() {
|
|
return this.umurMax;
|
|
}
|
|
|
|
@NotNull(message = "Umur Min tidak boleh kosong")
|
|
@Column(name = "UmurMin", nullable = false)
|
|
@Caption(value = "Umur Min")
|
|
private Double umurMin;
|
|
|
|
public void setUmurMin(Double umurMin) {
|
|
this.umurMin = umurMin;
|
|
}
|
|
|
|
public Double getUmurMin() {
|
|
return this.umurMin;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.kelompokumur_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.kelompokumur_m_id_seq", sequenceName = "public.kelompokumur_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |