package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseMaster;

@Entity
@Table(name = "BankAccount_M")
public class BankAccount extends BaseMaster {

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.bankaccount_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.bankaccount_m_id_seq", sequenceName = "public.bankaccount_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	@Column(name = "KdBankAccount", nullable = true, length = 80)
	private Integer kdBankAccount;

	@Column(name = "BankAccountNama", nullable = true, length = 100)
	private String bankAccountNama;

	@Column(name = "BankAccountKantor", nullable = true, length = 30)
	private String bankAccountKantor;

	@Column(name = "BankAccountNomor", nullable = true, length = 80)
	private String bankAccountNomor;

	@Column(name = "KeteranganLainnya", nullable = true, length = 150)
	private String keteranganLainnya;

	@Column(name = "QBankAccount", nullable = true)
	private short qBankAccount;

	@ManyToOne
	@JoinColumn(name = "NoCmFk")
	private Pasien noCm;

	@Column(name = "NoCmFk", insertable = false, updatable = false, nullable = true)
	private Integer noCmId;

	@ManyToOne
	@JoinColumn(name = "KdRekananFk")
	private Rekanan kdRekanan;

	@Column(name = "KdRekananFk", insertable = false, updatable = false, nullable = true)
	private Integer kdRekananId;

	@ManyToOne
	@JoinColumn(name = "KdPegawaiFk")
	private Pegawai kdPegawai;

	@Column(name = "KdPegawaiFk", insertable = false, updatable = false, nullable = true)
	private Integer kdPegawaiId;

	@ManyToOne
	@JoinColumn(name = "KdCaraBayarFk")
	private CaraBayar kdCaraBayar;

	@Column(name = "KdCaraBayarFk", insertable = false, updatable = false, nullable = true)
	private Integer kdCaraBayarId;

	@ManyToOne
	@JoinColumn(name = "KdAccountFk")
	private ChartOfAccount kdAccount;

	@Column(name = "KdAccountFk", insertable = false, updatable = false, nullable = true)
	private Integer kdAccountId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getKdBankAccount() {
		return kdBankAccount;
	}

	public void setKdBankAccount(Integer kdBankAccount) {
		this.kdBankAccount = kdBankAccount;
	}

	public String getBankAccountNama() {
		return bankAccountNama;
	}

	public void setBankAccountNama(String bankAccountNama) {
		this.bankAccountNama = bankAccountNama;
	}

	public String getBankAccountKantor() {
		return bankAccountKantor;
	}

	public void setBankAccountKantor(String bankAccountKantor) {
		this.bankAccountKantor = bankAccountKantor;
	}

	public String getBankAccountNomor() {
		return bankAccountNomor;
	}

	public void setBankAccountNomor(String bankAccountNomor) {
		this.bankAccountNomor = bankAccountNomor;
	}

	public String getKeteranganLainnya() {
		return keteranganLainnya;
	}

	public void setKeteranganLainnya(String keteranganLainnya) {
		this.keteranganLainnya = keteranganLainnya;
	}

	public short getqBankAccount() {
		return qBankAccount;
	}

	public void setqBankAccount(short qBankAccount) {
		this.qBankAccount = qBankAccount;
	}

	public Pasien getNoCm() {
		return noCm;
	}

	public void setNoCm(Pasien noCm) {
		this.noCm = noCm;
	}

	public Rekanan getKdRekanan() {
		return kdRekanan;
	}

	public void setKdRekanan(Rekanan kdRekanan) {
		this.kdRekanan = kdRekanan;
	}

	public Pegawai getKdPegawai() {
		return kdPegawai;
	}

	public void setKdPegawai(Pegawai kdPegawai) {
		this.kdPegawai = kdPegawai;
	}

	public CaraBayar getKdCaraBayar() {
		return kdCaraBayar;
	}

	public void setKdCaraBayar(CaraBayar kdCaraBayar) {
		this.kdCaraBayar = kdCaraBayar;
	}

	public ChartOfAccount getKdAccount() {
		return kdAccount;
	}

	public void setKdAccount(ChartOfAccount kdAccount) {
		this.kdAccount = kdAccount;
	}

}
