/**
* @Title: EmpDaoImpl.java
* @Package org.dao.impl
* @Description: TODO该方法的主要作用:
* @author A18ccms A18ccms_gmail_com
* @date 2017-11-21 上午10:05:13
* @version V1.0
*/
package org.dao.impl;
import java.io.Serializable;
import java.util.List;
import org.dao.IEmpDao;
import org.entity.Emp;
import org.springframework.stereotype.Repository;
/**
*
* 项目名称:test_hibernate
* 类名称:EmpDaoImpl
* 类描述:
* 创建人:Mu Xiongxiong
* 创建时间:2017-11-21 上午10:05:13
* 修改人:Mu Xiongxiong
* 修改时间:2017-11-21 上午10:05:13
* 修改备注:
* @version
*
*/
@Repository
public class EmpDaoImpl extends BaseDaoImpl<Emp> implements IEmpDao {
/**(非 Javadoc)
* <p>Description(描述): </p>
* <p>Title: queryAll</p>
* @return
* @see org.dao.IEmpDao#queryAll()
*/
@SuppressWarnings("unchecked")
@Override
public List<Emp> queryAll() {
return (List<Emp>) super.getHibernateTemplate().find(" from Emp");
}
@Override
public void saveEntity(Emp entity) {
super.saveEntity(entity);
}
@Override
public void updateEntity(Emp entity) {
// TODO Auto-generated method stub
super.updateEntity(entity);
}
@Override
public void delEntity(Emp entity) {
// TODO Auto-generated method stub
super.delEntity(entity);
}
@Override
public Emp queryById(Serializable id) {
// TODO Auto-generated method stub
return super.queryById(id);
}
}
ssh(Spring+Spring mvc+hibernate)——EmpDaoImpl.java
最新推荐文章于 2022-08-15 21:27:57 发布