[jboss-user] [EJB 3.0] - Re: EntityManager's Native Query & Paging Results

jaikiran do-not-reply at jboss.com
Thu Jun 19 09:43:14 EDT 2008


"jaikiran" wrote : The indexing starts with 1 and not 0. So when setFirstResult(0) is used, it probably gets ignored.

I'm sorry. i re-read the javadocs and it appears the indexing does start from 0.

"rabbiaqaswar" wrote : 
  | So does that mean that the query is supposed to return Object[] containg the result & the index, even if i am only retreiving a single value in the query?
  | 
  | 

*As far as i know*, that's not how its expected to behave. The query output should be the same number of columns that you have mentioned in the select clause. 


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

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



More information about the jboss-user mailing list