Hi Robert, yes I did!
But do you think that you CAN do simply a "getPackages" in this case? Thanks Regards Sylvain -----Message d'origine----- De: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] Date: mardi, 18. f�vrier 2003 13:59 �: OJB Users List Objet: Re: M:N mapping: PLEASE HELP Did you add auto-retrieve=true to each of the foreign keys and collection inverse references? On Tuesday, Feb 18, 2003, at 03:38 US/Eastern, <[EMAIL PROTECTED]> wrote: > Hello, > > I want to implement a qualified M:N mapping. > As explained in tutorial 3, I have created an association class. > > My problem is how to retrieve (or store) info with this association > class between the two classes? > Is it possible to have a "packages" attribute in the Workstation class > and simply call the method "getPackages" to retrieve all the packages > in a workstation? > How can I do that? > > Here is the class-diagram: > > class Package > ------------- > int packageID; (PK) > Sring packageName; > String packageType; > Collection packageWorkstations > > > classs Workstation > ------------------ > int workstationID; (PK) > String workstationName; > String workstationType; > Collection packageWorkstations; > > > class Package_Workstation > ------------------------- > int packageID; (PK) > int workstationID; (PK) > int rule_order; > Package package; > Workstation workstation; > > There is a M:N relationship between Package and Workstation. The > Package_Workstation class is the association class. The relationship > is qualified with the field "rule_order". > > > Thanks for your help > Sylvain > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > R -- Robert S. Sfeir Senior Java Engineer National Institutes of Health Center for Information Technology Department of Enterprise Custom Applications [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
