2021-01-07 11:34:56 +07:00

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 TempatLahirBayi
*
* @author Generator
*/
@Entity // @Audited
@Table(name = "TempatLahirBayi_M")
public class TempatLahirBayi extends BaseMaster {
@Caption(value = "Kode Tempat Lahir Bayi")
private Byte kdTempatLahirBayi;
@NotNull(message = "Kd Tempat Lahir Bayi tidak boleh kosong")
@Column(name = "KdTempatLahirBayi", nullable = false)
public Byte getKdTempatLahirBayi() {
return kdTempatLahirBayi;
}
public void setKdTempatLahirBayi(Byte kdTempatLahirBayi) {
this.kdTempatLahirBayi = kdTempatLahirBayi;
}
@Caption(value = "QTempat Lahir Bayi")
private Byte qTempatLahirBayi;
public void setqTempatLahirBayi(Byte qTempatLahirBayi) {
this.qTempatLahirBayi = qTempatLahirBayi;
}
@NotNull(message = "QTempat Lahir Bayi tidak boleh kosong")
@Column(name = "QTempatLahirBayi", nullable = false)
public Byte getqTempatLahirBayi() {
return this.qTempatLahirBayi;
}
@Caption(value = "Tempat Lahir Bayi")
private String namaTempatLahirBayi;
@NotNull(message = "Tempat Lahir Bayi tidak boleh kosong")
@Column(name = "TempatLahirBayi", nullable = false, length = 50)
public String getNamaTempatLahirBayi() {
return namaTempatLahirBayi;
}
public void setNamaTempatLahirBayi(String namaTempatLahirBayi) {
this.namaTempatLahirBayi = namaTempatLahirBayi;
}
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.tempatlahirbayi_m_id_seq")
@javax.persistence.SequenceGenerator(name = "public.tempatlahirbayi_m_id_seq", sequenceName = "public.tempatlahirbayi_m_id_seq", allocationSize = 1)
@Column(name = "id")
protected Integer id;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
}