/**
* @Title: DeptDaoImpl.java
* @Package org.dao.impl
* @Description: TODO该方法的主要作用:
* @author A18ccms A18ccms_gmail_com
* @date 2017-11-21 上午9:57:37
* @version V1.0
*/
package org.dao.impl;
import java.io.Serializable;
import java.util.List;
import org.dao.IDeptDao;
import org.entity.Dept;
import org.springframework.stereotype.Repository;
/**
*
* 项目名称:test_hibernate
* 类名称:DeptDaoImpl
* 类描述:
* 创建人:Mu Xiongxiong
* 创建时间:2017-11-21 上午9:57:37
* 修改人:Mu Xiongxiong
* 修改时间:2017-11-21 上午9:57:37
* 修改备注:
* @version
*
*/
@Repository
public class DeptDaoImpl extends BaseDaoImpl<Dept> implements IDeptDao {
public List<Dept> queryAll() {
return (List<Dept>) super.getHibernateTemplate().find(" from Dept");
}
@Override
public void saveEntity(Dept entity) {
super.saveEntity(entity);
}
@Override
public void updateEntity(Dept entity) {
super.updateEntity(entity);
}
@Override
public void delEntity(Dept entity) {
super.delEntity(entity);
}
@Override
public Dept queryById(Serializable id) {
return super.queryById(id);
}
}