/*package com.jasamedika.medifirst2000.service.impl;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.collections.IteratorUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.jasamedika.medifirst2000.converter.RuanganMConverter;
import com.jasamedika.medifirst2000.dao.RuanganMDao;
import com.jasamedika.medifirst2000.entities.RuanganM;
import com.jasamedika.medifirst2000.entities.Pasien;
import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.RuanganMService;
import com.jasamedika.medifirst2000.vo.RuanganMVO;
import com.jasamedika.medifirst2000.vo.ModelVO;
import com.jasamedika.medifirst2000.vo.PasienVO;

*//**
 * Implement class for PasienService
 * 
 * @author Roberto
 * @param <T>
 *//*
@Service("RuanganMService")
public class RuanganMServiceImpl<T> implements RuanganMService<T> {
	
	@Autowired
	private RuanganMDao ruanganMDao;
	
	@Autowired
	private RuanganMConverter ruanganMConverter;
	

	@Override
	public RuanganMVO add(RuanganMVO vo) throws JpaSystemException, ServiceVOException {
		// convert to model and call repository
		RuanganM ruanganM=new RuanganM();
		ruanganM=ruanganMConverter.transferVOToModel(vo, ruanganM);
		ruanganMDao.save(ruanganM);

		return null;
	}

	
	@Override
	public RuanganMVO update(RuanganMVO vo) throws JpaSystemException, ServiceVOException {
		return null;
	}

	@Override
	public Boolean delete(String key) throws JpaSystemException {
		return null;
	}

	@Override
	public RuanganMVO findById(String key) throws JpaSystemException {
		return null;
	}

	@Override
	public List<RuanganMVO> findAll() throws JpaSystemException {
		List<RuanganMVO> ruanganMVOs = new ArrayList<RuanganMVO>();

		List<RuanganM> listRuangan = IteratorUtils.toList(ruanganMDao.findAll().iterator());

		ruanganMConverter.transferListOfModelToListOfVO(listRuangan, ruanganMVOs);

		

		return ruanganMVOs;
	}

	@Override
	public Map<String, Object> findAllWithPageAndLimitAndSortByAndDirectionParameter(Integer page, Integer limit,
			String sort, String dir) {
		return null;
	}

}
*/