If you do "select a, b, c from ..." in HQL, you get back a list of Object[3]. So try this:
Code:
Iterator itr = dayendReptList.iterator();
while(itr.hasNext()){
Object[] ret = (Object[]) itr.next();
String department = (String) ret[0];
String remarks = (String) ret[1];
String subject = (String) ret[2];
...
}
You might consider using parameters instead of building that HQL string. Also, posting with code tags is good. Switching to java5 wouldn't hurt either, though I suppose you could hold off for java6 at this point.. it's pretty close to release.