if any one help me why i am geting following this exception here
List<abc> listQues=null;
for(int i=0;i<surveyIds.size();)
{
List<abc> listQue = (ArrayList<abc>) getHibernateTemplate().find("from abc as q where q.surveyId=" + surveyIds.get(0) + " order by q.pageNo asc, q.sortOrder asc");
listQues.add((abc) listQue);
i++;
}
i am geting following Exception Here
java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.inrev.crm.bean.IRSurveyQuestions
Please help me
Thanks
com.inrev.crm.bean.IRSurveyQuestions
type of objects but trying to cast the same toArrayList<abc>
which is an error. – SacJn yesterdayIRSurveyQuestions
. It should have been alist
ofabc
type. – SacJn yesterdaygetHibernateTemplate().find()
? – dimo414 yesterday