Dear Krishnan,
   Sorry to bother you again. I have a design question. In CMP 2.0, CMR fields linking 
to entity beans cause those entity beans to be better cached, right? In that context, 
I was thinking using the superclass value object B in your example goes against the 
whole acceptable fine-grained design for entity bean. Why not make the entity a you 
are trying to "bulk set" into another entity bean, and make it a CMR field in Bean A? 
This shouldn't be too much of a performance overhead if the contatiner caches CMR 
entities in memory. Here is a code example to better understand...

---------------------------
coarse grained model :

 Value Object  B
      |
     \/
  entity A extends B

---------------------------
fine grained model:

Entity A has public abstract EntityB getB()
Entity B has the value object variables

---------------------------

What do you think?
Warmest Regards,
Eric Dunn

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