If I remeber correctly, a read-ahead-strategy "on-find" is needed for the relation to solve this. A typical relation definition addon in jbosscmp-jdbc.xml look like this in our code generated by xdoclet: <ejb-relation> | <ejb-relation-name>MbiAfsta-MbiAfpos</ejb-relation-name> | <ejb-relationship-role> | <ejb-relationship-role-name>1-mbi_afsta-n-mbi_afpos</ejb-relationship-role-name> | <key-fields> | <key-field> | <field-name>afstaSerial</field-name> | <column-name>afsta_serial</column-name> | </key-field> | </key-fields> | <read-ahead> | <strategy>on-find</strategy> | </read-ahead> | </ejb-relationship-role> | <ejb-relationship-role> | <ejb-relationship-role-name>n-mbi_afpos-1-mbi_afsta</ejb-relationship-role-name> | <key-fields/> | <batch-cascade-delete/> | </ejb-relationship-role> | </ejb-relation> |
The xdoclet tag is: @jboss.relation-read-ahead strategy="on-find" View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872653#3872653 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872653 ------------------------------------------------------- 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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user