Do you think it's necessary that your data encapsulation object be an instance 
variable of your bean? One could imagine the following methods on an entity bean:


public BeanData getBeanData() {
    BeanData data;

    data = new BeanData();
    data.var1 = this.var1;
    data.var2 = this.var2;
    ...
    ...

    return data;
}

public void setBeanData(BeanData newData) {

    this.var1 = newData.var1;
    this.var2 = newData.var2
    ...
    ...
}

This permits CMP. The downside, obviously, is that a new object is created with each 
call to getBeanData().

===========================================================================
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