Ara Abrahamian wrote:

> Works for me. How do the class headers look like and what's wrong?

Here are some specifics. I want this in my superclass:
  * @ejb:bean name="EntitySupport"
  *      view-type="local"
  *      cmp-version="2.x"
  *      type="CMP"
  *      reentrant="true"
  *      primkey-field="id"
  * @ejb:pk class="java.lang.String"
  * @ejb:data-object container="false"
  * @ejb:interface 
local-extends="portal.core.ejb.interfaces.PortalEJBLocalObject"
  * @ejb:home local-extends="portal.core.ejb.interfaces.PortalEJBLocalHome"

In the Category subclass I currently have this:
  * @ejb:bean
  *       name="Category"
  *       view-type="local"
  *       type="CMP"
  *       cmp-version="2.x"
  *       primkey-field="id"
  * @ejb:pk class="java.lang.String"

In the Forum subclass (which doesn't work) I currently have this:
  * @ejb:bean
  *       name="Forum"
  * @ejb:pk class="java.lang.String"

Preferably it should only be the bean tag with the name, which is pretty 
much the only thing that differs between beans.

This currently generates the following XML:
       <entity >
          <description><![CDATA[]]></description>

          <ejb-name>Category</ejb-name>

          <local-home>portal.forum.ejb.interfaces.CategoryHome</local-home>
          <local>portal.forum.ejb.interfaces.Category</local>

          <ejb-class>portal.forum.ejb.bean.CategoryEntity</ejb-class>
          <persistence-type>Container</persistence-type>
          <prim-key-class>java.lang.String</prim-key-class>
          <reentrant>False</reentrant>
          <cmp-version>2.x</cmp-version>
          <abstract-schema-name>Category</abstract-schema-name>
          <cmp-field >
             <description><![CDATA[]]></description>
             <field-name>id</field-name>
          </cmp-field>
          <cmp-field >
             <description><![CDATA[]]></description>
             <field-name>title</field-name>
          </cmp-field>
          <cmp-field >
             <description><![CDATA[]]></description>
             <field-name>description</field-name>
          </cmp-field>
          <primkey-field>id</primkey-field>

       </entity>

          <description><![CDATA[]]></description>

          <ejb-name>Forum</ejb-name>

          <home>portal.forum.ejb.interfaces.ForumHome</home>
          <remote>portal.forum.ejb.interfaces.Forum</remote>
          <local-home>portal.forum.ejb.interfaces.ForumHome</local-home>
          <local>portal.forum.ejb.interfaces.Forum</local>

          <ejb-class></ejb-class>
          <persistence-type>Container</persistence-type>
          <prim-key-class>java.lang.String</prim-key-class>
          <reentrant>False</reentrant>

       </entity>
--

So, as you can see the bean that doesn't specify everything explicitly 
yields incorrect XML. It would be soooo good if this worked, as the 
JavaDoc for each bean would be muchos simplified.

/Rickard


_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to