[jboss-user] [EJB 3.0] - Re: Help on java.lang.ClassCastException: java.lang.String
jaikiran
do-not-reply at jboss.com
Thu Oct 19 03:03:48 EDT 2006
anonymous wrote : select o.strCountry from TblCountry as o
o.strCountry appears to be a column of type String. So the returned objects will be of type java.lang.String. Your code:
anonymous wrote : TblCSCSubCategory region = (TblCSCSubCategory) myList.get(i) ;
will have to be changed to:
String country = (String) myList.get(i);
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979264#3979264
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979264
More information about the jboss-user
mailing list