package com.jasamedika.medifirst2000.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.validation.constraints.NotNull; import com.jasamedika.medifirst2000.base.BaseMaster; import com.jasamedika.medifirst2000.helper.Caption; /** * class HariLibur * * @author Generator */ @Entity // @Audited @Table(name = "HariLibur_M") public class HariLibur extends BaseMaster { @ManyToOne @JoinColumn(name = "ObjectHariLiburFk") @NotNull(message = "Kd Hari Libur tidak boleh kosong") @Caption(value = "Object Hari Libur") private Hari hariLibur; public void setHariLibur(Hari hariLibur) { this.hariLibur = hariLibur; } public Hari getHariLibur() { return this.hariLibur; } @Column(name = "ObjectHariLiburFk", insertable = false, updatable = false) private Integer hariLiburId; @NotNull(message = "Nama Hari Libur tidak boleh kosong") @Column(name = "NamaHariLibur", nullable = false, length = 50) @Caption(value = "Nama Hari Libur") private String namaHariLibur; public void setNamaHariLibur(String namaHariLibur) { this.namaHariLibur = namaHariLibur; } public String getNamaHariLibur() { return this.namaHariLibur; } @NotNull(message = "QHari Libur tidak boleh kosong") @Column(name = "QHariLibur", nullable = false) @Caption(value = "QHari Libur") private Byte qHariLibur; public void setqHariLibur(Byte qHariLibur) { this.qHariLibur = qHariLibur; } public Byte getqHariLibur() { return this.qHariLibur; } @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.harilibur_m_id_seq") @javax.persistence.SequenceGenerator(name = "public.harilibur_m_id_seq", sequenceName = "public.harilibur_m_id_seq", allocationSize = 1) @Column(name = "id") protected Integer id; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getHariLiburId() { return hariLiburId; } public void setHariLiburId(Integer hariLiburId) { this.hariLiburId = hariLiburId; } }