85 lines
2.3 KiB
Java
85 lines
2.3 KiB
Java
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;
|
|
|
|
@Entity //@Audited
|
|
@Table(name = "PerhitunganPoin_M")
|
|
public class PerhitunganPoin extends BaseMaster {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectDetailJenisProdukFk")
|
|
@Caption(value = "Object Detail Jenis Produk")
|
|
private DetailJenisProduk detailJenisProduk;
|
|
|
|
@Column(name = "ObjectDetailJenisProdukFk", insertable = false, updatable = false, nullable = true)
|
|
private Integer detailJenisProdukId;
|
|
|
|
@Caption(value = "PersentasePoin")
|
|
@NotNull(message = "PersentasePoin tidak boleh kosong")
|
|
@Column(name = "persentasePoin", nullable = true)
|
|
private Double persentasePoin;
|
|
|
|
@Caption(value = "PembagiPoin")
|
|
@NotNull(message = "PembagiPoin tidak boleh kosong")
|
|
@Column(name = "pembagiPoin", nullable = true)
|
|
private Double pembagiPoin;
|
|
|
|
public DetailJenisProduk getDetailJenisProduk() {
|
|
return detailJenisProduk;
|
|
}
|
|
|
|
public void setDetailJenisProduk(DetailJenisProduk detailJenisProduk) {
|
|
this.detailJenisProduk = detailJenisProduk;
|
|
}
|
|
|
|
public Integer getDetailJenisProdukId() {
|
|
return detailJenisProdukId;
|
|
}
|
|
|
|
public void setDetailJenisProdukId(Integer detailJenisProdukId) {
|
|
this.detailJenisProdukId = detailJenisProdukId;
|
|
}
|
|
|
|
public Double getPersentasePoin() {
|
|
return persentasePoin;
|
|
}
|
|
|
|
public void setPersentasePoin(Double persentasePoin) {
|
|
this.persentasePoin = persentasePoin;
|
|
}
|
|
|
|
public Double getPembagiPoin() {
|
|
return pembagiPoin;
|
|
}
|
|
|
|
public void setPembagiPoin(Double pembagiPoin) {
|
|
this.pembagiPoin = pembagiPoin;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.PerhitunganPoin_M_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.PerhitunganPoin_M_id_seq", sequenceName = "public.PerhitunganPoin_M_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
}
|