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

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 LetakJaninBayi
*
* @author Generator
*/
@Entity // @Audited
@Table(name = "LetakJaninBayi_M")
public class LetakJaninBayi extends BaseMaster {
@NotNull(message = "Kd Letak Janin Bayi tidak boleh kosong")
@Column(name = "KdLetakJaninBayi", nullable = false)
@Caption(value = "Kode Letak Janin Bayi")
private Byte kdLetakJaninBayi;
public void setKdLetakJaninBayi(Byte kdLetakJaninBayi) {
this.kdLetakJaninBayi = kdLetakJaninBayi;
}
public Byte getKdLetakJaninBayi() {
return this.kdLetakJaninBayi;
}
@NotNull(message = "Letak Janin Bayi tidak boleh kosong")
@Column(name = "LetakJaninBayi", nullable = false, length = 30)
@Caption(value = "Letak Janin Bayi")
private String letakJaninBayi;
public void setLetakJaninBayi(String letakJaninBayi) {
this.letakJaninBayi = letakJaninBayi;
}
public String getLetakJaninBayi() {
return this.letakJaninBayi;
}
@NotNull(message = "QLetak Janin Bayi tidak boleh kosong")
@Column(name = "QLetakJaninBayi", nullable = false)
@Caption(value = "QLetak Janin Bayi")
private Byte qLetakJaninBayi;
public void setqLetakJaninBayi(Byte qLetakJaninBayi) {
this.qLetakJaninBayi = qLetakJaninBayi;
}
public Byte getqLetakJaninBayi() {
return this.qLetakJaninBayi;
}
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.letakjaninbayi_m_id_seq")
@javax.persistence.SequenceGenerator(name = "public.letakjaninbayi_m_id_seq", sequenceName = "public.letakjaninbayi_m_id_seq", allocationSize = 1)
@Column(name = "id")
protected Integer id;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
}