Hehe :)
You miss the @ before ejb:create-method

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf 
> Of May Huang
> Sent: samedi 6 avril 2002 4:50
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] EJBDoclet...not generating my create methods
> 
> 
> Hi,
> 
> I'm a newbie to xdoclet, so if I sound a bit stupid, plz bear with me.
> 
> I'm trying to generate all the necessary classes/interfaces 
> for an EntityBean, (EJB 2.0), given a bean implementation.  I 
> got all the files generated, however, both Home and LocalHome 
> refused to generate my create method... :(  (I got my finders 
> generated with no problem.)
> 
> I'm using 3/10 version of xdoclet_1.1.2.zip, and my bean 
> implementation is as below.
> 
> Thanks,
> --may
> 
> -------------------------------------------------------------------
> /*
>  * AbcBean.java
>  *
>  * Created on March 28, 2002, 5:36 PM
>  */
> 
> package may.ejb;
> 
> import javax.ejb.EntityBean;
> import javax.ejb.EntityContext;
> import javax.ejb.CreateException;
> 
> /**
>  * @ejb:bean name="Abc" type="CMP" jndi-name="ejb/Abc" 
> view-type="both" type="CMP"
>  * @ejb:finder signature="Collection findAll()" 
> unchecked="true" transaction-type="Supports"
>  * @ejb:finder signature="Collection findByA(String a)" 
> unchecked="true" transaction-type="Supports"
>  * @ejb:interface generate="local, remote"
>  * @ejb:home generate="local, remote"
>  *
>  * @jboss:table-name "abc"
>  * @jboss:create-table "${jboss.create.table}"
>  * @jboss:remove-table "${jboss.remove.table}"
>  * @jboss:tuned-updates "${jboss.tuned.updates}"
>  * @jboss:read-only "${jboss.read.only}"
>  *
>  * @author  may
>  * @version $Revision$
>  */
> public abstract class AbcBean implements EntityBean
> {
>   private EntityContext context;
> 
>   //access methods for cmp fields
>   /**
>    * PrimaryKey.
>    *
>    * @ejb:pk-field
>    * @ejb:interface-method view-type="local"
>    * @ejb:persistent-field
>    *
>    * @jboss:column-name "pk"
>    */
>   public abstract Integer getID(); // primary key
> 
>   /**
>    * @ejb:interface-method view-type="local"
>   */
>   public abstract void setID(Integer id);
> 
>   /**
>    * @ejb:interface-method view-type="local"
>    * @ejb:persistent-field
>    */
>   public abstract String getA();
> 
>   /**
>    * @ejb:interface-method view-type="local"
>   */
>   public abstract void setA(String a);
> 
>   /**
>    * @ejb:interface-method view-type="local"
>    * @ejb:persistent-field
>    */
>   public abstract Integer getB();
> 
>   /**
>    * @ejb:interface-method view-type="local"
>   */
>   public abstract void setB(Integer b);
> 
> 
>   /**
>    * @ejb:interface-method
>    */
> //  public abstract AbcData getAbcData();
> 
>   /**
>    * @ejb:interface-method
>    */
> //  public abstract void setAbcData(AbcData value);
> 
>   //access methods for cmr fields
> 
>   //business methods
> 
>   //ejb interface
>   /**
>    * ejb:create-method
>    */
>   public AbcPK ejbCreate (Integer id)
>     throws CreateException {
>       log("AbcBean.ejbCreate...");
>       setID (id);
>       return new AbcPK(id);
>   }
> 
>   // other EntityBean methods
> 
>   public void ejbPostCreate (Integer id)
>     throws CreateException {
>       log("AbcBean.ejbPostCreate(" + id);
>   }
> 
>   public void setEntityContext(EntityContext ctx) {
>       log("AbcBean.setEntityContext...");
>       context = ctx;
>   }
> 
>   public void unsetEntityContext() {
>       log("AbcBean.unsetEntityContext...");
>       context = null;
>   }
> 
>   public void ejbRemove() 
>     throws javax.ejb.RemoveException
>   {
>       log("AbcBean.ejbRemove... [" +
>               getID() + ", " + getA() + ", " + getB() + "]");
>   }
> 
>   public void ejbLoad() {
>       log("AbcBean.ejbLoad...");
>   }
> 
>   public void ejbStore() {
>       log("AbcBean.ejbStore...");
>   }
> 
>   public void ejbPassivate() {
>       log("AbcBean.ejbPassivate...");
>   }
> 
>   public void ejbActivate() {
>       log("AbcBean.ejbActivate...");
>   }
> 
>   private void log (String s)
>   {
>     System.out.println(s);
>   }
> }
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax 
http://taxes.yahoo.com/

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


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

Reply via email to