try{
Session session = sessionFactory.openSession();
Criteria critSelectedResumes = session.createCriteria(SelectedResumes.class);
critSelectedResumes.createAlias("resumeStatusId", "rsi");
critSelectedResumes.add(Restrictions.eq("rsi.resumeStatusId", 2));
Iterator ite;
ite = critSelectedResumes.list().iterator();
{
while (it.hasNext()){
Object[] pair = (Object[]) ite.next();
SelectedResumes selectedResumes = (SelectedResumes)pair[0];
ResumeStatus resumeStatus = (ResumeStatus) pair[1];
我收到此錯誤不能被轉換爲[Ljava.lang.Object
SelectedResumes cannot be cast to [Ljava.lang.Object;
任何想法可能是什麼原因
感謝
在哪一行發生錯誤? – BoltClock
Object [] pair =(Object [])ite.next();這行 – junaidp