100 lines
2.9 KiB
Java
100 lines
2.9 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import java.io.Serializable;
|
|
import org.hibernate.envers.Audited;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
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 KelompokPelayanan
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "KelompokPelayanan_M")
|
|
public class KelompokPelayanan extends BaseMaster {
|
|
@NotNull(message = "Kd Kelompok Pelayanan tidak boleh kosong")
|
|
@Column(name = "KdKelompokPelayanan", nullable = false)
|
|
@Caption(value = "Kode Kelompok Pelayanan")
|
|
private Byte kdKelompokPelayanan;
|
|
|
|
public void setKdKelompokPelayanan(Byte kdKelompokPelayanan) {
|
|
this.kdKelompokPelayanan = kdKelompokPelayanan;
|
|
}
|
|
|
|
public Byte getKdKelompokPelayanan() {
|
|
return this.kdKelompokPelayanan;
|
|
}
|
|
|
|
@NotNull(message = "Kelompok Pelayanan tidak boleh kosong")
|
|
@Column(name = "KelompokPelayanan", nullable = false, length = 75)
|
|
@Caption(value = "Kelompok Pelayanan")
|
|
private String kelompokPelayanan;
|
|
|
|
public void setKelompokPelayanan(String kelompokPelayanan) {
|
|
this.kelompokPelayanan = kelompokPelayanan;
|
|
}
|
|
|
|
public String getKelompokPelayanan() {
|
|
return this.kelompokPelayanan;
|
|
}
|
|
|
|
@NotNull(message = "QKelompok Pelayanan tidak boleh kosong")
|
|
@Column(name = "QKelompokPelayanan", nullable = false)
|
|
@Caption(value = "QKelompok Pelayanan")
|
|
private Byte qKelompokPelayanan;
|
|
|
|
public void setqKelompokPelayanan(Byte qKelompokPelayanan) {
|
|
this.qKelompokPelayanan = qKelompokPelayanan;
|
|
}
|
|
|
|
public Byte getqKelompokPelayanan() {
|
|
return this.qKelompokPelayanan;
|
|
}
|
|
|
|
/*
|
|
* @JsonManagedReference
|
|
*
|
|
* @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
|
|
* mappedBy="kdkelompokpelayanan") private Set<JenisTransaksi>
|
|
* JenisTransaksiSet = new HashSet<JenisTransaksi>();
|
|
*
|
|
* public Set<JenisTransaksi> getJenisTransaksiSet() { return
|
|
* JenisTransaksiSet; }
|
|
*
|
|
* public void setJenisTransaksiSet(Set<JenisTransaksi> jenisTransaksiSet) {
|
|
* JenisTransaksiSet = jenisTransaksiSet; }
|
|
*/
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.kelompokpelayanan_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.kelompokpelayanan_m_id_seq", sequenceName = "public.kelompokpelayanan_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |