package com.jasamedika.medifirst2000.entities; import javax.persistence.Column; import javax.persistence.Entity; 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; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity @Table(name = "DetailSWOT_M") public class DetailSWOT extends BaseMaster { @ManyToOne @JoinColumn(name = "swotFk") @NotNull(message = "SWOT Harus Diisi") @Caption(value = "SWOT") private SWOT swot; @Column(name = "SwotFk", insertable = false, updatable = false) private Integer swotFk; @Column(name = "detailFaktor") @Caption(value = "Detail Faktor") private String detailFaktor; @Column(name = "bobot") @NotNull(message = "Bobot tidak boleh kosong") @Caption(value = "Bobot") private Double bobot; @Column(name = "rating") @NotNull(message = "Rating tidak boleh kosong") @Caption(value = "Rating") private Integer rating; @Column(name = "skor") @Caption(value = "Skor") private Double skor; @Column(name = "awalPeriode") @Caption(value = "Awal Periode") private Integer awalPeriode; @Column(name = "akhirPeriode") @Caption(value = "Akhir Periode") private Integer akhirPeriode; public SWOT getSwot() { return swot; } public void setSwot(SWOT swot) { this.swot = swot; } public Integer getSwotFk() { return swotFk; } public void setSwotFk(Integer swotFk) { this.swotFk = swotFk; } public String getDetailFaktor() { return detailFaktor; } public void setDetailFaktor(String detailFaktor) { this.detailFaktor = detailFaktor; } public Double getBobot() { return bobot; } public void setBobot(Double bobot) { this.bobot = bobot; } public Integer getRating() { return rating; } public void setRating(Integer rating) { this.rating = rating; } public Double getSkor() { return skor; } public void setSkor(Double skor) { this.skor = skor; } public Integer getAwalPeriode() { return awalPeriode; } public void setAwalPeriode(Integer awalPeriode) { this.awalPeriode = awalPeriode; } public Integer getAkhirPeriode() { return akhirPeriode; } public void setAkhirPeriode(Integer akhirPeriode) { this.akhirPeriode = akhirPeriode; } @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.detailswot_m_id_seq") @javax.persistence.SequenceGenerator(name = "public.detailswot_m_id_seq", sequenceName = "public.detailswot_m_id_seq", allocationSize = 1) @Column(name = "id") protected Integer id; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }