-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Proble In use HQL with sum and union Function
PostPosted: Wed Jun 13, 2007 8:50 am 
Newbie

Joined: Wed Jun 13, 2007 8:28 am
Posts: 1
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!


Top
 Profile  
 
 Post subject: Code snippet
PostPosted: Wed Jun 13, 2007 10:14 am 
Beginner
Beginner

Joined: Thu Jan 13, 2005 10:50 am
Posts: 30
Location: Minneapolis, MN
Please post your code snippet


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.