[jboss-user] [EJB 3.0] - Re: EntityManager's Native Query & Paging Results
rabbiaqaswar
do-not-reply at jboss.com
Fri Jun 13 06:07:16 EDT 2008
Since the query was returning an Object array, i printed its contents
if(ids != null && !ids .isEmpty()){
| for (Iterator it = ids.iterator(); it.hasNext();) {
|
| Object[] obj = (Object[])it.next();
| System.out.println(""+Arrays.deepToString(obj));
|
| }
| }
and the result was:
| 13:58:53,124 INFO [STDOUT] [206, 11]
| 13:58:53,124 INFO [STDOUT] [207, 12]
| 13:58:53,124 INFO [STDOUT] [208, 13]
| 13:58:53,124 INFO [STDOUT] [209, 14]
| 13:58:53,124 INFO [STDOUT] [210, 15]
| 13:58:53,124 INFO [STDOUT] [211, 16]
| 13:58:53,124 INFO [STDOUT] [212, 17]
| 13:58:53,124 INFO [STDOUT] [213, 18]
| 13:58:53,124 INFO [STDOUT] [214, 19]
| 13:58:53,124 INFO [STDOUT] [215, 20]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157908#4157908
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157908
More information about the jboss-user
mailing list