83 lines
2.5 KiB
Java
83 lines
2.5 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 MetodologiBayiTabung
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "MetodologiBayiTabung_M")
|
|
public class MetodologiBayiTabung extends BaseMaster {
|
|
@NotNull(message = "Kd Metodologi Bayi Tabung tidak boleh kosong")
|
|
@Column(name = "KdMetodologiBayiTabung", nullable = false)
|
|
@Caption(value = "Kode Metodologi Bayi Tabung")
|
|
private Byte kdMetodologiBayiTabung;
|
|
|
|
public void setKdMetodologiBayiTabung(Byte kdMetodologiBayiTabung) {
|
|
this.kdMetodologiBayiTabung = kdMetodologiBayiTabung;
|
|
}
|
|
|
|
public Byte getKdMetodologiBayiTabung() {
|
|
return this.kdMetodologiBayiTabung;
|
|
}
|
|
|
|
@NotNull(message = "Metodologi Bayi Tabung tidak boleh kosong")
|
|
@Column(name = "MetodologiBayiTabung", nullable = false, length = 75)
|
|
@Caption(value = "Metodologi Bayi Tabung")
|
|
private String metodologiBayiTabung;
|
|
|
|
public void setMetodologiBayiTabung(String metodologiBayiTabung) {
|
|
this.metodologiBayiTabung = metodologiBayiTabung;
|
|
}
|
|
|
|
public String getMetodologiBayiTabung() {
|
|
return this.metodologiBayiTabung;
|
|
}
|
|
|
|
@NotNull(message = "QMetodologi Bayi Tabung tidak boleh kosong")
|
|
@Column(name = "QMetodologiBayiTabung", nullable = false)
|
|
@Caption(value = "QMetodologi Bayi Tabung")
|
|
private Byte qMetodologiBayiTabung;
|
|
|
|
public void setqMetodologiBayiTabung(Byte qMetodologiBayiTabung) {
|
|
this.qMetodologiBayiTabung = qMetodologiBayiTabung;
|
|
}
|
|
|
|
public Byte getqMetodologiBayiTabung() {
|
|
return this.qMetodologiBayiTabung;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.metodologibayitabung_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.metodologibayitabung_m_id_seq", sequenceName = "public.metodologibayitabung_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |