Can any one sendme this file. (jbosscmp-jdbc_xml.j)
Please!
 
 
FROM: Stephen Coy
DATE: 06/28/2002 07:17:41
SUBJECT: RE: [JBoss-user] CMP 2.0 / FINDER CREATION PROBLEM

 

Unfortunately, xdoclet 1.1.2 has only limited support for custom jboss 
queries for CMP 2.0.

"jboss:finder-query" generates JAWS (CMP 1.1) configuration data.

I'm including a modified jbosscmp-jdbc_xml.j file that we are using, 
which has almost full support for "jboss:declared-sql" and "jboss:query" 
tags, which generate <declared-sql> and <query> sections in your 
jbosscmp-jdbc.xml file.

You need to replace this file in your xdoclet.jar.

Here's a sample:

  @jboss:declared-sql
	signature="Collection findInSequence()"
	order="precedence"
  @jboss:query
	signature="java.util.Collection 
ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.UserLocal 
user)"
	query="SELECT DISTINCT r.worklist FROM User AS u, IN (u.userRoles) 
AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY 
r.worklist.precedence ASC"
	strategy="on-find"
	page-size="16"

  @jboss:query
	signature="java.util.Set ejbSelectGeneric( java.lang.String query, 
java.lang.Object[] args)"
	dynamic="true"

For more detailed information on these JBoss constructs, the USD10 CMP 
documentation is well worth it.

Reply via email to