Cleber,

I didn't see anything obviously wrong with the table tag or the
ejbdoclet section.  It should be putting the jbosscmp-jdbc.xml in your
build/ejb/META-INF directory - with the table tag in it.

Unfortunately, I have noticed that if there is a required tag missing or
a misspelled tag in an xdoclet section, then it dies silently - no error
message.

Here is the class documentation for one of our beans that does create
the table tag in the jbosscmp-jdbc.xml.  I was overly verbose in this
bean - even specifying a few things that are defaults, but it works.
Note the primkey-field tag, cmp-version tag, and the others that aren't
in your bean:

/**
 * This class is part of the Self-administered website project.
 * It is a CMP EJB that represents a page in a site.
 * 
 *
 * @version $Revision: 1.5 $
 * @author Matthew Excell 1/30/2003
 * @ejb.pk
 *    class="java.lang.Long"
 * @ejb.bean
 *    cmp-version="2.x"
 *    local-jndi-name="saw.SiteLocalHome"
 *    name="Site"
 *    primkey-field="id"
 *    type="CMP"
 *    schema="Site"
 *    view-type="local"
 * @ejb.finder
 *    method-intf="LocalHome"
 *    result-type-mapping="Local"
 *    signature="java.util.Collection findAll()"
 * @ejb.finder
 *    method-intf="LocalHome"
 *    query="SELECT OBJECT(p) FROM Site p WHERE p.domain = ?1 and
LOCATE(?2, p.prefix) = 0 "
 *    result-type-mapping="Local"
 *    signature="com.possibilityforge.saw.ejb.SiteLocal
findByDomainAndPath(java.lang.String domain, java.lang.String path)" 
 * @jboss.declared-sql
 *    method-intf="LocalHome"
 *    where="site.domain = {0} and {1} LIKE site.prefix||'%'::text"
 *    signature="com.possibilityforge.saw.ejb.SiteLocal
findByDomainAndPath(java.lang.String domain, java.lang.String path)" 
 * @ejb.persistence
 *    table-name="site"
 * @jboss.tuned-updates true
 * @jboss.read-only false
 */

The following section is a section of the resulting jbosscmp-jdbc.xml:

      <entity>
         <ejb-name>Page</ejb-name>
         <read-only>false</read-only>
         <table-name>page</table-name>



If you would like, I can email you the whole bean and sections of the
build.xml off list.  We use XDoclet daily, and it has saved us countless
man-hours of work on literally dozens of projects - large and small.


-- 
Matthew Excell
Senior Consultant - The Possibility Forge, Inc.
matt(at)possibilityforge(dot)com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to