83 lines
2.3 KiB
Java
83 lines
2.3 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 CaraLahirBayi
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "CaraLahirBayi_M")
|
|
public class CaraLahirBayi extends BaseMaster {
|
|
@NotNull(message = "Cara Lahir Bayi tidak boleh kosong")
|
|
@Column(name = "CaraLahirBayi", nullable = false, length = 30)
|
|
@Caption(value = "Cara Lahir Bayi")
|
|
private String caraLahirBayi;
|
|
|
|
public void setCaraLahirBayi(String caraLahirBayi) {
|
|
this.caraLahirBayi = caraLahirBayi;
|
|
}
|
|
|
|
public String getCaraLahirBayi() {
|
|
return this.caraLahirBayi;
|
|
}
|
|
|
|
@NotNull(message = "Kd Cara Lahir Bayi tidak boleh kosong")
|
|
@Column(name = "KdCaraLahirBayi", nullable = false)
|
|
@Caption(value = "Kode Cara Lahir Bayi")
|
|
private Byte kdCaraLahirBayi;
|
|
|
|
public void setKdCaraLahirBayi(Byte kdCaraLahirBayi) {
|
|
this.kdCaraLahirBayi = kdCaraLahirBayi;
|
|
}
|
|
|
|
public Byte getKdCaraLahirBayi() {
|
|
return this.kdCaraLahirBayi;
|
|
}
|
|
|
|
@NotNull(message = "QCara Lahir Bayi tidak boleh kosong")
|
|
@Column(name = "QCaraLahirBayi", nullable = false)
|
|
@Caption(value = "QCara Lahir Bayi")
|
|
private Byte qCaraLahirBayi;
|
|
|
|
public void setqCaraLahirBayi(Byte qCaraLahirBayi) {
|
|
this.qCaraLahirBayi = qCaraLahirBayi;
|
|
}
|
|
|
|
public Byte getqCaraLahirBayi() {
|
|
return this.qCaraLahirBayi;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.caralahirbayi_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.caralahirbayi_m_id_seq", sequenceName = "public.caralahirbayi_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |