package com.yihu.hos.resource.dao.impl;

import com.yihu.hos.web.framework.dao.SQLGeneralDAO;
import com.yihu.hos.resource.dao.IRsResourceCategoryDao;
import com.yihu.hos.resource.model.RsResourceCategory;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by chenweida on 2016/1/13.
 */
@Repository("rsResourceCategoryDao")
public class RsResourceCategoryDaoImpl extends SQLGeneralDAO implements IRsResourceCategoryDao {
    @Override
    public List<RsResourceCategory> getAllRsResourceCategory() throws Exception {
        return (List<RsResourceCategory>) super.hibernateTemplate.find(" from RsResourceCategory r ");
    }
}
