[jboss-user] [EJB 3.0] - Re: Query returns Object instead of the right type....

jaikiran do-not-reply at jboss.com
Thu Mar 12 07:49:05 EDT 2009


"dimar1975" wrote : 
  | The problem is that now the list contains Objects and not TaskList......I need TaskList otherwise I will have ClassCastExceptions in other pieces of the code......
  | 
  | 

Its going to return an Object array. You will have to change the return type since you no longer are expecting an entire TaskList from the query output.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217398#4217398

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217398



More information about the jboss-user mailing list