[jboss-user] [EJB 3.0] - Re: query.getResultList(); <= contains the same instance X t

fbadt do-not-reply at jboss.com
Thu Nov 9 18:46:33 EST 2006

In this case, there can, and often will, be more than one row that should be returned by getResultList (thus the use of this method not getSingleResult)

The lookup is not done by PK.  It is done in a where clause like the below.  There should be 10 rows / elements in the result; and there are 10.  The problem is that all 10 are the same reference instead of 10 references corresponding to 10 rows returned:

  | select v from TABLE1 v where v.SOMEGETTER = ?1

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

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

More information about the jboss-user mailing list