Try to use ejb.bean:type="entity", and make your class extend the abstract EntityBean class.

[EMAIL PROTECTED] wrote:
XDoclet:  1.2.3

I have an abstract base entity bean of which other CMP
entity beans extend.  I included the
@ejb.create-method tag in my base entity bean, but
when I run XDoclet it will not generate the ejbCreate
method within the local home interface.  Ironically,
XDoclet will correctly generate the
<container-transaction><method>
.....
<method-name>create</method-name>
.....
</method></container-method>
stuff ok.  XDoclet will also generate all the
@ejb.interface-method methods properly within the
local interfaces.  XDoclet just won't generate the
create method within the local home interface with
@ejb.create-method.  How do I fix this?

Thanks.

*********Sample Base & Derived Classes*********

public abstract class MyDataBaseBean {
/** * Creates a new instance of MyDataBaseBean */
    public MyDataBaseBean() {
    }
/**
     * @ejb.create-method
     *      view-type="local"
     * @ejb.transaction
     *      type="Required"
     */
    public test.primkeys.MyDataBeanPK
ejbCreate(test.MyData myData,
test.localinterfaces.MyDataLocal myDataLocal) throws
javax.ejb.CreateException {
        setMyData1(myData.getData1());
        setMyData2(myData.getData2());
return null;
    }
public void ejbPostCreate(test.MyData myData,
test.localinterfaces.MyDataLocal myDataLocal) throws
javax.ejb.CreateException {
        setMyData(myDataLocal);
    }

    /**
     * @ejb.interface-method
     *      view-type="local"
     * @ejb.persistence
     *      column-name="high"
     */
    public abstract java.math.BigDecimal getHigh();
    public abstract void setHigh(java.math.BigDecimal
high);

.........

}

/**
 * @ejb.bean
 *      name="MyDataABean"
 *      type="CMP"
 * @ejb.pk
 *      class="test.primkeys.MyDataBeanPK"
 *
 * @jboss.audit-updated-time
 *      field-name="updated"
 *      column-name="updated"
 * @jboss.persistence
 *      table-name="MyDataA"
 */
public abstract class MyDataABean extends
MyDataBaseBean implements javax.ejb.EntityBean {
    private javax.ejb.EntityContext context;

.........

}



                
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


--
The authors know of one compiler that was written using only seven comments,
one of which read "This code is cursed."

                                                    page 731, The Dragon Book


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to