Today,I wirte a method to query data,in this method ,I used the function sum and union function in the HQL,and there is no problem!But when I iterate the data that return by the method,there is an exception,ClassCastException.But I think there is no mistake, I know that
this method return an List which contaions an Object[] ,there is no mistake, isn't it?But the problem just occurs,there is an Exception ,ClassCastException,I really don't kown how to slove it,and I don't think that I there is an mistake ,but just here ,there is an mistake,could you help me ?
note that:I use Hibernate 3.0 and spring 1.2,and this Method implements the HibernateCallback Interface.
That's all,thank u!
|