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.*;

@Getter
@Setter
@Entity
@Table(name = "AntrianPasienRegistrasiDetail_T")
public class AntrianPasienRegistrasiDetail extends BaseTransaction {

	@Column(name = "merchant", length = 50)
	@Caption(value = "Merchant")
	private String merchant;

	@Column(name = "merchantInvoiceNo", length = 20)
	@Caption(value = "Merchant Invoice No")
	private String merchantInvoiceNo;

	@Column(name = "amount")
	@Caption(value = "Amount")
	private Long amount;

	@ManyToOne
	@JoinColumn(name = "ObjectJenisKartuDetailFk")
	@Caption(value = "Object AntrianPasienRegistrasiDetail")
	private JenisKartuDetail jenisKartuDetail;

	@Column(name = "ObjectJenisKartuDetailFk", insertable = false, updatable = false)
	private Integer jenisKartuDetailId;

	@ManyToOne
	@JoinColumn(name = "ObjectJenisKartuFk")
	@Caption(value = "Object Jenis Kartu")
	private JenisKartu jenisKartu;

	@Column(name = "ObjectKartuKreditFk", insertable = false, updatable = false)
	private Integer jenisKartuId;

	@ManyToOne
	@JoinColumn(name = "ObjectCaraBayarFk")
	@Caption(value = "Object Cara Bayar")
	private CaraBayar caraBayar;

	@Column(name = "ObjectKartuKreditFk", insertable = false, updatable = false)
	private Integer caraBayarId;

	@OneToOne
	@JoinColumn(name = "ObjectAntrianPasienRegistrasiFK")
	@Caption(value = "AntrianPasienRegistrasi")
	private AntrianPasienRegistrasi antrianPasienRegistrasi;

	@Column(name = "ObjectAntrianPasienRegistrasiFK", insertable = false, updatable = false)
	private String antrianPasienRegistrasiId;

}
