The following issue has been updated:
Updater: Vassil Dichev (mailto:[EMAIL PROTECTED])
Date: Sat, 13 Nov 2004 1:09 AM
Comment:
Updated the generation of the <query> element in ejb-jar.xml to be dependent on
the xdoclet tag "signature", and not "query".
Changes:
Attachment changed to patch.diff
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1152?page=history
---------------------------------------------------------------------
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: xdoclet-devel (Use for new issues)
Reporter: Vassil Dichev
Created: Sat, 13 Nov 2004 1:07 AM
Updated: Sat, 13 Nov 2004 1:09 AM
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
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel