package com.jasamedika.medifirst2000.entities; import com.fasterxml.jackson.annotation.JsonBackReference; import com.jasamedika.medifirst2000.base.BaseTransaction; import com.jasamedika.medifirst2000.helper.Caption; import lombok.Getter; import lombok.Setter; import javax.persistence.*; @Getter @Setter @Entity @Table(name = "MappingPertanyaanToKeterangan_T") public class MappingPertanyaanToKeterangan extends BaseTransaction { @JsonBackReference @ManyToOne @JoinColumn(name = "ObjectPertanyaanSurveyFk") @Caption(value = "PertanyaanSurvey") private PertanyaanSurvey pertanyaanSurvey; @Column(name = "ObjectPertanyaanSurveyFk", insertable = false, updatable = false) private Integer pertanyaanSurveyId; @JsonBackReference @ManyToOne @JoinColumn(name = "ObjectKeteranganSurveyFk") @Caption(value = "KeteranganSurvey") private KeteranganSurvey keteranganSurvey; @Column(name = "ObjectKeteranganSurveyFk", insertable = false, updatable = false) private Integer keteranganSurveyId; @Column(name = "Jumlah") @Caption(value = "Jumlah") private Integer jumlah; }