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