Has anyone successfully implemented a 1 to many unidirection circular
container managed relationship in J2EE RI 1.3?  I have a CMP 2.0 entity bean
that needs a relationship to itself or another instance of the same type.
The bean deploys fine, but when I try to set the relationship, it throws
java.sql.SQLException exceptions.


Here is some of the code:
The bean is ProductEjb:
  local interface - ProductLocal
  local home interface - ProductLocalHome
  Bean implementation - ProductEJB

public abstract class ProductEJB extends AbstractEntityEJB {
    //.... other methods for setting CMP and CMR fields

    /* CMR accessors - links the circular relationship. */
    public abstract void setRecurProduct(ProductLocal recurProduct);
    public abstract ProductLocal getRecurProduct();

    //.... other methods
}

James Hicks

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to