The <queryMethod> Ant task configures the EJB-QL queries for finder and query methods and optionally configures other settings such as an isolation level that applies to this query only. For example:
<target name="configure-user"> <setProperties component="ejb.components.example.Product"> ... <queryMethod method="findByName(java.lang.String name)" isolationLevel="RepeatableReadWithCache" tableVersion="ref_tv.tv" /> <queryMethod method="findByTitle(java.lang.String title)" isolationLevel="RepeatableReadWithCache" tableVersion="ref_tv.tv" /> </setProperties> </target>
Many optimizations require you to modify or add parameters in the <queryMethod> invocations.