4 Replies Latest reply on Nov 11, 2004 11:27 AM by Raffi Minassian

    Cant get xdoclet to include create or getter method in inter

    Raffi Minassian Newbie

      I hate to ask this here but I'm getting desperate...

      No matter what I do I cant get Xdoclet to include my create method for my CMP test bean. Nor will it include any of the getter or setter methods. I must be doing something utterly stupid.

      Please feel free to point out my stupidity...
      Thanks


      package com.test;

      import javax.ejb.EntityBean;
      import javax.ejb.EntityContext;

      /**
      * @ejb.bean
      * display-name="ContactBean"
      * description="This bean represents a contact"
      * jndi-name="ejb/contact"
      * name="Contact"
      * type="CMP"
      * view-type="both"
      * primkey-field="ideaxid"
      * cmp-version="2.x"
      *
      * @ejb.persistence
      * table-name="contacts"
      *
      */
      public abstract class ContactBean implements EntityBean
      {

      public void setEntityContext(EntityContext ec)
      {
      }

      public void unsetEntityContext()
      {
      }

      public void ejbLoad()
      {
      }

      public void ejbStore()
      {
      }

      public void ejbActivate()
      {
      }

      public void ejbPassivate()
      {
      }

      public void ejbRemove()
      {
      }

      /*
      * @ejb.create-method
      */
      public Long ejbCreate(Long id) throws javax.ejb.CreateException
      {
      setIdeaxid(id);
      return null;
      }

      public void ejbPostCreate(Long id) {};

      public abstract Long getId();
      public abstract void setId(Long id);

      /*
      * @ejb.interface-method
      */
      public abstract String getName();

      /*
      * @ejb.interface-method
      */
      public abstract void setName(String name);

      /*
      * @ejb.interface-method
      */
      public abstract String getNotes();

      /*
      * @ejb.interface-method
      */
      public abstract void setNotes(String notes);

      }