package com.ejie.ab79.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ejie.ab79.dao.RelDenInsDao;
import com.ejie.ab79.model.RelDenIns;
import com.ejie.ab79.model.inspecciones.Inspecciones;

/**
 * RelEstInsServiceImpl  
 * 
 *  
 */

@Service(value = "relDenInsService")
public class RelDenInsServiceImpl implements RelDenInsService {

	@Autowired
	private RelDenInsDao relDenInsDao;

	/**
	 * Inserts a single row in the RelDenIns table.
	 *
	 * @param relDenIns
	 *            RelDenIns
	 * @return RelDenIns
	 */
	@Override
	@Transactional(rollbackFor = Throwable.class)
	public RelDenIns add(RelDenIns relDenIns) {
		return this.relDenInsDao.add(relDenIns);
	}

	@Override
	public void removeByInspeccion(Inspecciones inspeccion) {
		this.relDenInsDao.removeByInspeccion(inspeccion);
	}

}
