package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class JenisPerawatan
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "JenisPerawatan_M")
public class JenisPerawatanVO extends BaseMasterVO {
	@Caption(value="Jenis Perawatan")
	private String jenisPerawatan;

	public void setJenisPerawatan(String jenisPerawatan) {
		this.jenisPerawatan = jenisPerawatan;
	}

	@Column(name = "JenisPerawatan", nullable = false , length = 80)
	public String getJenisPerawatan(){
		return this.jenisPerawatan;
	}

	@Caption(value="Kode Jenis Perawatan")
	private Byte kdJenisPerawatan;

	public void setKdJenisPerawatan(Byte kdJenisPerawatan) {
		this.kdJenisPerawatan = kdJenisPerawatan;
	}

	@Column(name = "KdJenisPerawatan", nullable = false )
	public Byte getKdJenisPerawatan(){
		return this.kdJenisPerawatan;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectJenisPerawatanHeadFk")
	@Caption(value="Object Jenis Perawatan Head")
	private JenisPerawatanVO jenisPerawatanHead;

	public void setJenisPerawatanHead(JenisPerawatanVO jenisPerawatanHead) {
		this.jenisPerawatanHead = jenisPerawatanHead;
	}

	@Column(name = "KdJenisPerawatanHead", nullable = true )
	public JenisPerawatanVO getJenisPerawatanHead(){
		return this.jenisPerawatanHead;
	}

	@Column(name = "ObjectJenisPerawatanHeadFk", insertable=false,updatable=false)
	private Integer jenisPerawatanHeadId;

	@Caption(value="QJenis Perawatan")
	private Byte qJenisPerawatan;

	public void setqJenisPerawatan(Byte qJenisPerawatan) {
		this.qJenisPerawatan = qJenisPerawatan;
	}

	@Column(name = "QJenisPerawatan", nullable = false )
	public Byte getqJenisPerawatan(){
		return this.qJenisPerawatan;
	}

	/*//
	@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "kdjenisperawatan")
	private Set<Departemen> DepartemenSet = new HashSet<Departemen>();

	public Set<Departemen> getDepartemenSet() {
		return DepartemenSet;
	}

	public void setDepartemenSet(Set<Departemen> departemenSet) {
		DepartemenSet = departemenSet;
	}

	//
	@OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="kdjenisperawatanhead")
	private Set<JenisPerawatan> JenisPerawatanSet = new HashSet<JenisPerawatan>();

	public Set<JenisPerawatan> getJenisPerawatanSet() {
		return JenisPerawatanSet;
	}

	public void setJenisPerawatanSet(Set<JenisPerawatan> jenisPerawatanSet) {
		JenisPerawatanSet = jenisPerawatanSet;
	}*/

	
}

