100 lines
2.7 KiB
Java
100 lines
2.7 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 KomponenHargaR
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "KomponenHargaR_M")
|
|
public class KomponenHargaR extends BaseMaster {
|
|
/*
|
|
* @ManyToOne
|
|
*
|
|
* @JoinColumn(name = "ObjectKomponenHargaRFk")
|
|
*
|
|
* @NotNull(message="Kd Komponen Harga R tidak boleh kosong")
|
|
*
|
|
* @Caption(value="Object Komponen Harga R") private KomponenHarga
|
|
* komponenHargaR;
|
|
*
|
|
* public void setKomponenHargaR(KomponenHarga komponenHargaR) {
|
|
* this.komponenHargaR = komponenHargaR; }
|
|
*
|
|
*
|
|
* public KomponenHarga getKomponenHargaR(){ return this.komponenHargaR; }
|
|
*
|
|
* @Column(name = "ObjectKomponenHargaRFk",
|
|
* insertable=false,updatable=false) private Integer komponenHargaRId;
|
|
*/
|
|
@Caption(value = "Komponen Harga R")
|
|
private String namaKomponenHargaR;
|
|
|
|
public String getNamaKomponenHargaR() {
|
|
return namaKomponenHargaR;
|
|
}
|
|
|
|
public void setNamaKomponenHargaR(String namaKomponenHargaR) {
|
|
this.namaKomponenHargaR = namaKomponenHargaR;
|
|
}
|
|
|
|
@NotNull(message = "No Urut tidak boleh kosong")
|
|
@Column(name = "NoUrut", nullable = false)
|
|
@Caption(value = "No Urut")
|
|
private Byte noUrut;
|
|
|
|
public void setNoUrut(Byte noUrut) {
|
|
this.noUrut = noUrut;
|
|
}
|
|
|
|
public Byte getNoUrut() {
|
|
return this.noUrut;
|
|
}
|
|
|
|
@NotNull(message = "QKomponen Harga R tidak boleh kosong")
|
|
@Column(name = "QKomponenHargaR", nullable = false)
|
|
@Caption(value = "QKomponen Harga R")
|
|
private Byte qKomponenHargaR;
|
|
|
|
public void setqKomponenHargaR(Byte qKomponenHargaR) {
|
|
this.qKomponenHargaR = qKomponenHargaR;
|
|
}
|
|
|
|
public Byte getqKomponenHargaR() {
|
|
return this.qKomponenHargaR;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.komponenhargar_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.komponenhargar_m_id_seq", sequenceName = "public.komponenhargar_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |