File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes classCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "classCastException" Watch "classCastException" New topic
Author

classCastException

Naveen Mouli
Greenhorn

Joined: Jul 03, 2007
Posts: 2
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 ]
 
 
subject: classCastException
 
Threads others viewed
Struts2-spring-hibernet integration jars
Hibernate Criteria Query not working properly
How to write a Crieteria for
ArrayList
Inner join in Hibernate
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture