/**
* @Title: EmpServiceImpl.java
* @Package org.service.impl
* @Description: TODO该方法的主要作用:
* @author A18ccms A18ccms_gmail_com
* @date 2017-11-21 上午10:19:41
* @version V1.0
*/
package org.service.impl;
import java.io.Serializable;
import java.util.List;
import org.dao.IEmpDao;
import org.entity.Emp;
import org.service.IEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
*
* 项目名称:test_hibernate
* 类名称:EmpServiceImpl
* 类描述:
* 创建人:Mu Xiongxiong
* 创建时间:2017-11-21 上午10:19:41
* 修改人:Mu Xiongxiong
* 修改时间:2017-11-21 上午10:19:41
* 修改备注:
* @version
*
*/
@Service
public class EmpServiceImpl implements IEmpService{
@Autowired
public IEmpDao empDao;
@Override
public List<Emp> queryAll() {
return empDao.queryAll();
}
@Override
public void saveEntity(Emp entity) {
empDao.saveEntity(entity);
}
@Override
public void updateEntity(Emp entity) {
empDao.updateEntity(entity);
}
@Override
public void delEntity(Emp entity) {
empDao.delEntity(entity);
}
@Override
public Emp queryById(Serializable id) {
return empDao.queryById(id);
}
}