package com.jasamedika.medifirst2000.entities;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import com.jasamedika.medifirst2000.entities.KategoryTugas;

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

import javax.validation.constraints.NotNull;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 * class UraianTugas
 * 
 * @author Generator
 */
@Entity
@Table(name = "sdm_UraianTugas_T")
public class UraianTugas extends BaseTransaction {
	@Column(name = "Id", nullable = false, length = 100)
	@Caption(value = "Id")
	private Integer id;

	public Integer getId() {
		return id;
	}

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

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

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ManyToOne
	@JoinColumn(name = "Ruangan")

	@Caption(value = "Kategory Tugas")
	private Ruangan ruangan;
	@Column(name = "Ruangan", insertable = false, updatable = false,nullable=true)
	private Integer ruanganId;

	public Ruangan getRuangan() {
		return ruangan;
	}

	public void setRuangan(Ruangan ruangan) {
		this.ruangan = ruangan;
	}

	@ManyToOne
	@JoinColumn(name = "KategoryTugasFk")
	@NotNull(message = "Kategory Tugas Harus Diisi")
	@Caption(value = "Kategory Tugas")
	private KategoryTugas kategoryTugas;

	public KategoryTugas getKategoryTugas() {
		return kategoryTugas;
	}

	public void setKategoryTugas(KategoryTugas kategoryTugas) {
		this.kategoryTugas = kategoryTugas;
	}

	@Column(name = "KategoryTugasFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String kategoryTugasId;

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

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}

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

	public Integer getTargetPerMonth() {
		return targetPerMonth;
	}

	public void setTargetPerMonth(Integer targetPerMonth) {
		this.targetPerMonth = targetPerMonth;
	}

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

	public Integer getBobot() {
		return bobot;
	}

	public void setBobot(Integer bobot) {
		this.bobot = bobot;
	}

}