86 lines
2.3 KiB
Java
86 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.envers.Audited;
|
|
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 GolonganDarah
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
|
|
@Table(name = "GolonganDarah_M")
|
|
public class GolonganDarah extends BaseMaster {
|
|
@NotNull(message = "Golongan Darah tidak boleh kosong")
|
|
@Column(name = "GolonganDarah", nullable = false, length = 2)
|
|
@Caption(value = "Golongan Darah")
|
|
private String golonganDarah;
|
|
|
|
public void setGolonganDarah(String golonganDarah) {
|
|
this.golonganDarah = golonganDarah;
|
|
}
|
|
|
|
public String getGolonganDarah() {
|
|
return this.golonganDarah;
|
|
}
|
|
|
|
@NotNull(message = "Kd Golongan Darah tidak boleh kosong")
|
|
@Column(name = "KdGolonganDarah", nullable = false)
|
|
@Caption(value = "Kode Golongan Darah")
|
|
private Byte kdGolonganDarah;
|
|
|
|
public void setKdGolonganDarah(Byte kdGolonganDarah) {
|
|
this.kdGolonganDarah = kdGolonganDarah;
|
|
}
|
|
|
|
public Byte getKdGolonganDarah() {
|
|
return this.kdGolonganDarah;
|
|
}
|
|
|
|
@NotNull(message = "QGolongan Darah tidak boleh kosong")
|
|
@Column(name = "QGolonganDarah", nullable = false)
|
|
@Caption(value = "QGolongan Darah")
|
|
private Byte qGolonganDarah;
|
|
|
|
public void setqGolonganDarah(Byte qGolonganDarah) {
|
|
this.qGolonganDarah = qGolonganDarah;
|
|
}
|
|
|
|
public Byte getqGolonganDarah() {
|
|
return this.qGolonganDarah;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.golongandarah_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.golongandarah_m_id_seq", sequenceName = "public.golongandarah_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |