I have a newbie question, if you don't mind. Your advanced O/R tutorial shows a 1:1 mapping example with Article and ProductGroup classes. You've shown the table schemas (in German, but I follow you) and the repository_user.xml. All very good, of course.
The repository XML for Article has a productGroupId that points to the ProductGroup key, and an instance of ProductGroup that is supposed to be owned by the Article. Now if I want to ask the broker to store a brand new Article, how do I do it? Is the productGroupId required to be set to an existing before I call broker.store(newArticle)? If I want to have a new ProductGroup for my Article, do I have to do this as a five-step transaction? 1. Create a new ProductGroup instance 2. Store the new ProductGroup instance 3. Get the latest ProductGroup instances's primary key 4. Create a new Article, using the PG primary key 5. Store the new Article I'm sure it's my lack of understanding, because this feels very difficult. I'm still climbing that OJB learning curve. Thank you for your work, help, and patience. Sincerely, MOD __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
