package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
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 AlatKesehatan
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "AlatKesehatan_M")
public class AlatKesehatanVO extends BaseMasterVO {
	@Caption(value="Kode Alkes")
	private Byte kdAlkes;
	
	
	@Column(name = "KdAlkes", nullable = false )
	public Byte getKdAlkes(){
		return this.kdAlkes;
	}

	public void setKdAlkes(Byte kdAlkes) {
		this.kdAlkes = kdAlkes;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectDepartemenFk")
	@NotNull(message="Object DepartemenVO Harus Diisi")
	@Caption(value="Object Departemen")
	private DepartemenVO departemen;

	@Column(name = "ObjectDepartemenFk", insertable=false,updatable=false)
	private Integer departemenId;
	
	

	public Integer getDepartemenId() {
		return departemenId;
	}

	public void setDepartemenId(Integer departemenId) {
		this.departemenId = departemenId;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectJenisAlkesFk")
	@NotNull(message="Object Jenis Alkes Harus Diisi")
	@Caption(value="Object Jenis Alkes")
	private JenisAlatKesehatanVO jenisAlkes;

	@Column(name = "ObjectJenisAlkesFk", insertable=false,updatable=false)
	private Integer jenisAlkesId;
	
	

	public Integer getJenisAlkesId() {
		return jenisAlkesId;
	}

	public void setJenisAlkesId(Integer jenisAlkesId) {
		this.jenisAlkesId = jenisAlkesId;
	}

	@Caption(value="Nama Alkes")
	private String namaAlkes;

	@Caption(value="Nomor AlamatVO Alkes")
	private String nomorAlamatAlkes;

	@Column(name = "KdDepartemen", nullable = false , length = 1)
	public DepartemenVO getDepartemen(){
		return this.departemen;
	}

	@Column(name = "KdJenisAlkes", nullable = false )
	public JenisAlatKesehatanVO getJenisAlkes(){
		return this.jenisAlkes;
	}

	

	@Column(name = "NamaAlkes", nullable = false , length = 100)
	public String getNamaAlkes(){
		return this.namaAlkes;
	}

	@Column(name = "NomorAlamatAlkes", nullable = true , length = 20)
	public String getNomorAlamatAlkes(){
		return this.nomorAlamatAlkes;
	}

	public void setDepartemen(DepartemenVO departemen) {
		this.departemen = departemen;
	}

	public void setJenisAlkes(JenisAlatKesehatanVO jenisAlkes) {
		this.jenisAlkes = jenisAlkes;
	}



	public void setNamaAlkes(String namaAlkes) {
		this.namaAlkes = namaAlkes;
	}

	public void setNomorAlamatAlkes(String nomorAlamatAlkes) {
		this.nomorAlamatAlkes = nomorAlamatAlkes;
	}


}

