Hi,

I'm just getting started using value objects for a few existing beans:
User has Addresses and Phones. I declared the abstract accessors and ran
the task. The value object classes are generated, but I don't see any
class that implements the details of translating from the entity bean to
the value object. The documentation mentions the "generated EJB class,"
but I've never found one. I assumed that WebLogic is generating a
concrete implementation of each EJB -- not XDoclet.

Here's the relavent code for the simple Phone EJB:

/**
 * This is a Phone entity bean.
 *
 * @ejb.bean
 *      name="Phone"
 *      display-name="Phone"
 *      view-type="local"
 *      jndi-name="identity/PhoneRemote"
 *      local-jndi-name="identity/Phone"
 *      cmp-version="2.x"
 *      primkey-field="id"
 *
 * @ejb.value-object
 *      name="Phone"
 *      match="main"
 */
public abstract class PhoneEJB extends BaseEJB
{
  ...

  /**
   * @ejb.interface-method
   */
  public abstract PhoneVO getPhoneVO ( ) ;

  /**
   * @ejb.interface-method
   */
  public abstract void setPhoneVO ( PhoneVO vo ) ;
}

The errors I get when deploying with WL 7.0 are

  In bean Phone, the abstract method, getPhoneVO(), doesn't correspond
to any
  container-managed field and is not implemented in the bean class or
any of
  its superclasses.

  In bean Phone, the abstract method,
setPhoneVO(dd.apps.identity.PhoneVO),
  doesn't correspond to any container-managed field and is not
implemented
  in the bean class or any of its superclasses.

What am I missing? Thanks in advance!

Dave


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

Reply via email to