Many thanks for the response...

I'd sought of guessed the answer might be something like you suggested. 

However, this raises another problem. What if 'Entity2' has a property called 'Color' 
and the color entity owns a collection of Entity2 objects, like...

   class Entity1Bean { 
         ejbCreate(....) 
         Collection getEntity2List() // returns collection of 'Entity2' 
   } 

   class Entity2Bean { 
         ejbCreate(....) 
         Color getColor // points at related color object
   } 

   class ColorBean {
         Collection getEntity2List() // returns collection of 'Entity2' objects 
                                              // that share the same color
   }

In this case where 'Entity2' has two different entities in which it appears as a 
collection entry, where would you call the 'add'. Or do you have to call both?



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

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


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to