Thanks Wally!! Now it is working perfectly! :-)
I am wondering why the entire system was operative? :-/ I had a lot of references working, except this one. I agree with you, I was missing this crucial piece of code, so it is almost a miracle that the rest of elements were working. Thanks a lot! -----Original Message----- From: Gelhar, Wallace Joseph [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 10:14 p.m. To: OJB Users List Subject: RE: Problem with reference-descriptor Hi Gerardo, OJB is setting the FK field from the reference object. Therefore, setting the FK field and not setting the reference object is not sufficient. You can solve this problem in one of two ways. 1. Set the parentExamen object instead of the COD_EXAMEN_FISICO Fk field. OJB will set the COD_EXAMEN_FISICO FK field from the object before doing a persistence operation. 2. Set the COD_EXAMEN_FISICO field and call pb.retrieveReference("parentExamen"); to have OJB resolve the reference object. Hope this helps. Wally --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
