Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic-ql in jbosscmp-jdbc.xml  RSS feed

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
According to the documentation from JBOSSCMP, if use dynamic-ql for select method(String,Object), the following code must be embedded to the jbosscmp-jdbc.xml file.
<jbosscmp-jdbc>
<enterprise-beans>
<entity>
<ejb-name>GangsterEJB</ejb-name>
<query>
<query-method>
<method-name>ejbSelectGeneric</method-name>
<method-params>
<method-param>java.lang.String</method-param>
<method-param>java.lang.Object[]</method-param>
</method-params>
</query-method>
<dynamic-ql/>
</query>
</entity>
</enterprise-beans>
</jbosscmp-jdbc>

I would like to know how to generate this code using xdoclet? Right now, I just hard-code to the file or hard code another merge file, jbosscml-jdbc-beans.xml. Seems it is not flexible.
Can anyone help?
Benson
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!