Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

classCastException  RSS feed

 
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!