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 com.jasamedika.medifirst2000.entities.LoginUser;
import com.jasamedika.medifirst2000.entities.Ruangan;

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;

public class MapLoginUserToRuanganVO extends BaseMasterVO {
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value = "Object loginUser")
	private LoginUserVO loginUser;

	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value = "Object Ruangan")
	private RuanganVO ruangan;

	public LoginUserVO getLoginUser() {
		return loginUser;
	}

	public void setLoginUser(LoginUserVO loginUser) {
		this.loginUser = loginUser;
	}

	public RuanganVO getRuangan() {
		return ruangan;
	}

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

}

