Hi Gary, Take a look at http://db.apache.org/ojb/howto-use-anonymous-keys.html for documentation on using the anonymous keys feature of OJB.
Wally -----Original Message----- From: Gary [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 10:44 AM To: [EMAIL PROTECTED] Subject: Avoid Maintaining ID in Class for 1:1 I have a class, say, Patient, that contains a reference to another class, say, Physician. I know that my patient table obviously needs a column containing the primary key of the physician. However, I would like it so my Patient class would only need to contain a reference to a Physicial object; as I understand it now, it would also need to maintain a separate attribute for the physician ID. Is this correct? Or is there a way I can configure OJB to "extract" the physican ID from the physician object itself (which is referenced from the Patient object)? Gary __________________________________ Do you Yahoo!? Yahoo! Search - Find what you're looking for faster http://search.yahoo.com --------------------------------------------------------------------- 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]
