Ionel Gardais wrote: > Hi, > > I'm trying to implement a 1:N relationship. > In the example i am following, the relationship is created by adding two > abstract methods (Collection getEmployees() and void > setEmployees(Collection emp)) in a CompanyBean. Then the ejb-jar file is > set to reflect this relation : the relationship-role for the Company use > the employees field as the CMR field and no cmr field is declared in the > relationship-role of the Employee bean. > > As I don't want Company to be aware of any Employee, can I use the > CompanyId field I have in the Empoyee Bean to declare the relationship ? > (declaring abstract companyLocal getCompany() and abstract void > setCompany(companyLocal company)) > > Will the "relationship loading" behave the same way ?
I didn't completely follow this, but I think what you are describing will work fine. -- xxxxxxxxxxxxxxxxxxxxxxxx Dain Sundstrom Chief Architect JBossCMP JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek PC Mods, Computing goodies, cases & more http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
