83 lines
2.4 KiB
Java
83 lines
2.4 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 ProsesLahirBayi
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "ProsesLahirBayi_M")
|
|
public class ProsesLahirBayi extends BaseMaster {
|
|
@NotNull(message = "Kd Proses Lahir Bayi tidak boleh kosong")
|
|
@Column(name = "KdProsesLahirBayi", nullable = false)
|
|
@Caption(value = "Kode Proses Lahir Bayi")
|
|
private Byte kdProsesLahirBayi;
|
|
|
|
public void setKdProsesLahirBayi(Byte kdProsesLahirBayi) {
|
|
this.kdProsesLahirBayi = kdProsesLahirBayi;
|
|
}
|
|
|
|
public Byte getKdProsesLahirBayi() {
|
|
return this.kdProsesLahirBayi;
|
|
}
|
|
|
|
@NotNull(message = "Proses Lahir Bayi tidak boleh kosong")
|
|
@Column(name = "ProsesLahirBayi", nullable = false, length = 30)
|
|
@Caption(value = "Proses Lahir Bayi")
|
|
private String prosesLahirBayi;
|
|
|
|
public void setProsesLahirBayi(String prosesLahirBayi) {
|
|
this.prosesLahirBayi = prosesLahirBayi;
|
|
}
|
|
|
|
public String getProsesLahirBayi() {
|
|
return this.prosesLahirBayi;
|
|
}
|
|
|
|
@NotNull(message = "QProses Lahir Bayi tidak boleh kosong")
|
|
@Column(name = "QProsesLahirBayi", nullable = false)
|
|
@Caption(value = "QProses Lahir Bayi")
|
|
private Byte qProsesLahirBayi;
|
|
|
|
public void setqProsesLahirBayi(Byte qProsesLahirBayi) {
|
|
this.qProsesLahirBayi = qProsesLahirBayi;
|
|
}
|
|
|
|
public Byte getqProsesLahirBayi() {
|
|
return this.qProsesLahirBayi;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.proseslahirbayi_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.proseslahirbayi_m_id_seq", sequenceName = "public.proseslahirbayi_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |