package com.jasamedika.medifirst2000.entities; import com.jasamedika.medifirst2000.base.BaseTransaction; import com.jasamedika.medifirst2000.helper.Caption; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import java.util.Date; import static javax.persistence.FetchType.LAZY; @Getter @Setter @Entity @Table(name = "StrukRacikan_T") public class StrukRacikan extends BaseTransaction { private static final long serialVersionUID = -3297839532635972916L; @Caption(value = "No Racikan") @Column(name = "NoRacikan", nullable = false, length = 10) private String noRacikan; @Caption(value = "Tanggal Racikan") @Column(name = "TglRacikan", nullable = false) private Date tglRacikan; @ManyToOne(fetch = LAZY) @JoinColumn(name = "StrukOrderFk") @Caption(value = "No Order") private StrukOrder strukOrder; @Column(name = "StrukOrderFk", insertable = false, updatable = false) private String noOrder; }