ssh(Spring+Spring mvc+hibernate)——DeptDaoImpl.java

 /**  
* @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) {
        // TODO Auto-generated method stub
        super.saveEntity(entity);
    }

    @Override
    public void updateEntity(Dept entity) {
        // TODO Auto-generated method stub
        super.updateEntity(entity);
    }

    @Override
    public void delEntity(Dept entity) {
        // TODO Auto-generated method stub
        super.delEntity(entity);
    }

    @Override
    public Dept queryById(Serializable id) {
        // TODO Auto-generated method stub
        return super.queryById(id);
    }


}
posted @ 2018-01-01 15:44  穆雄雄  阅读(86)  评论(0编辑  收藏  举报