This content has been marked as final.
Show 1 reply
-
1. Re: Help! xdoclet and jboss query
canobi Oct 14, 2002 7:01 AM (in response to joeho)> Do anyone successfully generate jboss-ql in
> jbosscmp-jdbc.xml using the latest xdoclet?
Well, this is 2 weeks later than the original post, but I'm posting for reference. The setup:
xdoclet 1.2b1
jboss 3.0.3
2 tags are needed, one to declare a query and another to define it.
@ejb.finder signature="something.something findSometing ( someArg )"
query=""
@jboss.query signature="something.something findSomething ( someArg )"
query="your jbossql query here"
This will correctly add query declaration to ejb-jar.xml and query definition to jbosscmp-jdbc.xml.
Omitting the query attribute of the ejb.finder tag will result in query declaration not being added to ejb-jar.xml and you'll get "Unknown query method" exception on deployment.