package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

import static javax.persistence.GenerationType.SEQUENCE;

/**
 * class FaktorEvaluasi
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "sdm_MapFaktorEvaluasi_T")
public class MapFaktorEvaluasi extends BaseMaster {

	@ManyToOne
	@JoinColumn(name = "FaktorEvaluasiLeft")
	@Caption(value = "Faktor Evaluasi Left")
	private FaktorEvaluasi faktorEvaluasiLeft;

	@Column(name = "FaktorEvaluasiLeft", insertable = false, updatable = false)
	private Integer faktorEvaluasiLeftId;

	@ManyToOne
	@JoinColumn(name = "FaktorEvaluasiRight")
	@Caption(value = "Faktor Evaluasi Right")
	private FaktorEvaluasi faktorEvaluasiRight;

	@Column(name = "FaktorEvaluasiRight", insertable = false, updatable = false)
	private Integer faktorEvaluasiRightId;

	@Column(name = "value", nullable = false, length = 100)
	@Caption(value = "value")
	private Double value;

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

}