I read Hibernate doc, and it says:

  | Nor should fetch be used together with setMaxResults() or setFirstResult() 
as these operations are
  | based on the result rows, which usually contain duplicates for eager 
collection fetching, hence, the number of
  | rows is not what you'd expect.
  | 

EntityQuery used paging, there's certainly setMaxResults().

I'm kinda confused here. I executed generated mysql from mysql log, and the 
result seemed correct. Just the transaction was rolled back.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099789
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to