I tried to get a simple CMP bean to work with the new XDoclet features.
I used the new @ejb.persistence. I don't get any error messages, but the CMP
fields do not get generated in the resin.ejb file.
I am using the 1.2.0 beta 1 release. Has this been fixed?
If not, I would like to fix it.
package learn.cmpcmr;
import javax.ejb.*;
/**
* @ejb.bean type="CMP"
* cmp-version="2.x"
* name="UserBean"
* jndi.name="cmr.User"
* view-type="local"
* primkey-field="email"
*
* @ejb.pk class="java.lang.String"
*
* @ejb.home generate="local"
*
local-class="learn.cmpcmr.UserHome"
*
* @ejb.interface generate="local"
* local-class="learn.cmpcmr.User"
*
* @ejb.persistence
* table-name="TBL_USER"
*
*/
public abstract class UserBean
implements EntityBean {
/** @ejb.pk-field
* @ejb.interface-method view-type="local"
* @ejb.persistent-field
* @ejb.persistence column-name="EMAIL"
*/
public abstract String getEmail();
/** @ejb.persistent-field */
public abstract void setEmail(String email);
/** @ejb.persistent-field
* @ejb.interface-method view-type="local"
* @ejb.persistence column-name="PASSWORD"
*/
public abstract String getPassword();
/** @ejb.interface-method view-type="local"*/
public abstract void setPassword(String name);
public void setEntityContext(EntityContext context) {
}
public void unsetEntityContext() {
}
public void ejbRemove() throws RemoveException {
}
public void ejbLoad() {
}
public void ejbStore() {
}
public void ejbPassivate() {
}
public void ejbActivate() {
}
}
Rick Hightower
Chief Technology Officer
Learning Patterns Corp.
http://learningpatterns.com
Phone: 520.290.6855
Fax: 520.290.4179
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user