whop, sorry about that, I was going by memory.
You're right, EntityBean is an interface. Try and implement it. You may also
have to make your class abstract, cuz you haven't implemented all the methods.
But that's fine, cuz XDoclet will fill out the rest for you.
The @ejb.bean type is probably unnecessary, if your class implemented
EntityBean.
HTH,
Pedro
[EMAIL PROTECTED] wrote:
There is no EntityBean class (it's an interface) and
there is no type="entity" under XDoclet @ejb.bean.
But, to thoroughly rule it out as a possibility I
tried the suggestion anyway and it did not work. I
had my base entity bean implement EntityBean and
declared @ejb.bean:type="entity" and
@ejb.bean:type="CMP" at the class level, but it did
not work. Will someone shed some light on this
problem?
Thanks.
--- Pedro Sam <[EMAIL PROTECTED]> wrote:
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
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
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