package com.yihu.hos.resource.dao;

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

import java.util.List;

/**
 * Created by chenweida on 2016/1/13.
 */
@Repository("rsResourceCategoryDao")
public class RsResourceCategoryDaoImpl extends SQLGeneralDAO {

    public static final String BEAN_ID = "rsResourceCategoryDao";

    public List<RsResourceCategory> getAllRsResourceCategory() throws Exception {
        return (List<RsResourceCategory>) super.hibernateTemplate.find(" from RsResourceCategory r ");
    }
}
