37 lines
954 B
Java
37 lines
954 B
Java
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.*;
|
|
|
|
import static javax.persistence.FetchType.LAZY;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "DisposisiTanggapan_T")
|
|
public class DisposisiTanggapan extends BaseTransaction {
|
|
|
|
@JsonBackReference
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "ObjectDisposisiFk")
|
|
@Caption(value = "disposisi")
|
|
private Disposisi disposisi;
|
|
|
|
@Column(name = "ObjectDisposisiFk", insertable = false, updatable = false)
|
|
private String disposisiId;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "ObjectTanggapanFk")
|
|
@Caption(value = "tanggapan")
|
|
private Tanggapan tanggapan;
|
|
|
|
@Column(name = "ObjectTanggapanFk", insertable = false, updatable = false)
|
|
private Integer tanggapanId;
|
|
|
|
}
|