• Post Reply Bookmark Topic Watch Topic
  • New Topic

classCastException

 
Naveen Mouli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while executing the statement adultIds = query.list();
I am getting the classCastException
java.lang.Integer

adultIds = ReflectionUtil.extractPropertyValues("personId", adultList);

Query query = session.createQuery("select ac.adultChildId from AdultChild as ac where ac.personByAdultId in (:adultIds)").setParameterList("adultIds",adultIds);

adultIds = query.list();


please reply to this one

Thanks
Naveen
[ July 04, 2007: Message edited by: Naveen Mouli ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!