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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...