我的hql是这么写的:public Integer getBeneAddCount(String yearMonth){
    String hql = "select count(*) from Empbenefitplan where ebpYearMonth='" + yearMonth + "' and ebpStatus=1";
    return (Integer)empBenefitDao.exeHql(hql);
}报错:
org.hibernate.hql.QueryExecutionRequestException: Not supported for select queries [select count(*) from com.hr.compensation.domain.Empbenefitplan where ebpYearMonth='200908' and ebpStatus=1]这是什么问题?整个项目中用这个的很多,我觉得写得没错。