package com.ejie.ab04b.service;

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

import com.ejie.ab04b.dao.TareaErroneaDao;
import com.ejie.ab04b.model.TareaErronea;

/**
 * TareaErroneaServiceImpl generated by UDA, 13-dic-2017 13:03:55.
 * 
 * @author UDA
 */

@Service(value = "tareaErroneaService")
public class TareaErroneaServiceImpl implements TareaErroneaService {

	@Autowired
	private TareaErroneaDao TareaErroneaDao;

	@Transactional(rollbackFor = Throwable.class)
	public TareaErronea add(TareaErronea TareaErronea) {
		return this.TareaErroneaDao.add(TareaErronea);
	}

	/**
	 * Deletes a single row in the TareaErronea table.
	 *
	 * @param TareaErronea
	 *            TareaErronea
	 */
	@Transactional(rollbackFor = Throwable.class)
	public void remove(TareaErronea TareaErronea) {
		this.TareaErroneaDao.remove(TareaErronea);
	}

}
