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 javax.validation.constraints.NotNull; /** * class KesadaranCheckOutDetail * * @author shakato */ @Getter @Setter @Entity @Table(name = "KesadaranCheckOutDetail_T") public class KesadaranCheckOutDetail extends BaseTransaction { @ManyToOne @JoinColumn(name = "ObjectCheckOutOperationFk") @Caption(value = "ID checkOutOperation") @NotNull(message = "ID checkOutOperation tidak boleh kosong") private CheckOutOperation checkOutOperation; @Column(name = "ObjectCheckOutOperationFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false) private String checkOutOperationId; @ManyToOne @JoinColumn(name = "ObjectKesadaranCheckOutFk") @Caption(value = "ID KesadaranCheckOut") @NotNull(message = "ID KesadaranCheckOut tidak boleh kosong") private KesadaranCheckOut kesadaranCheckOut; @Column(name = "ObjectKesadaranCheckOutFk", insertable = false, updatable = false, nullable = false) private Integer kesadaranCheckOutId; @Column(name = "status") @Caption(value = "status") private Boolean status; }