I'm using 3.2.6. In the example query I always want to read the info of 2 
parent EJB's when selecting specific entities. So the query element looks like

  | <query>
  |     <query-method>
  |             <method-name>findByNumber</method-name>
  |             <method-params>
  |                     <method-param>java.lang.String</method-param>
  |             </method-params>
  |     </query-method>
  |     <read-ahead>
  |             <strategy>on-find</strategy>
  |             <page-size>64</page-size>
  |             <eager-load-group>all</eager-load-group>
  |             <left-join cmr-field = "type" eager-load-group = 
"all"></left-join>
  |             <left-join cmr-field = "archive" eager-load-group = 
"all"></left-join>
  |     </read-ahead>
  | </query>
  | 

The <page-size>64</page-size is only useful for loading fields that are not in 
an eager load group. So in my example the page size is not needed because I 
have small EJB's with a small amount of entities returned. If you have a large 
EJB with fields that are not needed then you better do something with on-load, 
lazy the page size and lazy loading.

Johan.

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to