Message: The following issue has been re-assigned.
Assignee: Matthias Germann (mailto:[EMAIL PROTECTED]) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1152 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1152 Summary: Cannot generate empty query in ejb deployment descriptor Type: Bug Status: Open Priority: Trivial Original Estimate: 1 minute Time Spent: Unknown Remaining: 1 minute Project: XDoclet Components: EJB Module Versions: 1.2.1 1.2.2 Assignee: Matthias Germann Reporter: Vassil Dichev Created: Sat, 13 Nov 2004 1:07 AM Updated: Tue, 8 Feb 2005 2:38 PM Environment: All Description: An empty <ejbql/> query cannot be generated in ejb-jar.xml. If one specifies an @ejb.finder tag without a query element, no <query> tag is generated at all in the ejb-jar.xml. One should be able to create an empty query, e.g. for finder methods, which can be overridden by subclasses of this EJB. Otherwise one is forced to enter a dummy query, which would never be called- but this is not very nice for automatic tests which call all of my finders. The fix is trivial and a patch is applied to xdoclet/modules/ejb/dd/resources/ejb-body.xdt (I've only changed one word). Explanation of the patch: Generation of the <query> tag depends on the existence of the "query" param, which (although it sounds rational) is not right. The <query> tag in ejb-jar.xml should depend on the "signature" attribute, which is the only required element (this is even reflected in the xdoclet documentation). There's even a nested 'ifDoesntHaveClassTag ... paramName="query"' which would never be executed, because it's inside of a 'ifHasClassTag ... paramName="query"' Best Regards, Vassil Dichev --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- 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 _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel