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);

}


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854699#3854699

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854699


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to