/**
* @Title: DeptServiceImpl.java
* @Package org.service.impl
* @Description: TODO该方法的主要作用:
* @author A18ccms A18ccms_gmail_com
* @date 2017-11-21 上午10:08:50
* @version V1.0
*/
package org.service.impl;
import java.io.Serializable;
import java.util.List;
import org.dao.IDeptDao;
import org.entity.Dept;
import org.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
*
* 项目名称:test_hibernate
* 类名称:DeptServiceImpl
* 类描述: 业务逻辑层
* 创建人:Mu Xiongxiong
* 创建时间:2017-11-21 上午10:08:50
* 修改人:Mu Xiongxiong
* 修改时间:2017-11-21 上午10:08:50
* 修改备注:
* @version
*
*/
@Service
public class DeptServiceImpl implements IDeptService {
@Autowired
private IDeptDao deptDao;
/**(非 Javadoc)
* <p>Description(描述): </p>
* <p>Title: queryAll</p>
* @return
* @see org.dao.IDeptDao#queryAll()
*/
@Override
public List<Dept> queryAll() {
return deptDao.queryAll();
}
@Override
public void saveEntity(Dept entity) {
deptDao.saveEntity(entity);
}
@Override
public void updateEntity(Dept entity) {
deptDao.updateEntity(entity);
}
@Override
public void delEntity(Dept entity) {
deptDao.delEntity(entity);
}
@Override
public Dept queryById(Serializable entity) {
return deptDao.queryById(entity);
}
}