package com.jasamedika.medifirst2000.entities;

import com.fasterxml.jackson.annotation.JsonBackReference;
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 = "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)
	private String penilaianKinerjaSatpamId;

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

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

}
