package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "MappingKualitas_T")
public class MappingKualitas extends BaseTransaction {

	private static final long serialVersionUID = 3778872807122806097L;

	@JsonBackReference
	@ManyToOne
	@JoinColumn(name = "ObjectPenilaianKinerjaSatpamFk")
	private PenilaianKinerjaSatpam penilaianKinerjaSatpam;

	@Column(name = "ObjectPenilaianKinerjaSatpamFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = true)
	private String penilaianKinerjaSatpamId;

	@Caption(value = "Kualitas")
	@Column(name = "Kualitas", nullable = true)
	private String kualitas;

	@Column(name = "NilaiKualitas", nullable = true)
	private Integer nilaiKualitas;

	public PenilaianKinerjaSatpam getPenilaianKinerjaSatpam() {
		return penilaianKinerjaSatpam;
	}

	public void setPenilaianKinerjaSatpam(PenilaianKinerjaSatpam penilaianKinerjaSatpam) {
		this.penilaianKinerjaSatpam = penilaianKinerjaSatpam;
	}

	public String getKualitas() {
		return kualitas;
	}

	public void setKualitas(String kualitas) {
		this.kualitas = kualitas;
	}

	public Integer getNilaiKualitas() {
		return nilaiKualitas;
	}

	public void setNilaiKualitas(Integer nilaiKualitas) {
		this.nilaiKualitas = nilaiKualitas;
	}

}
