RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem

2003-12-04 Thread Frank Renaers
The name of the method is : broker.retrieveAllReferences() Frank -Original Message- From: Graham Lounder [mailto:[EMAIL PROTECTED] Sent: woensdag 3 december 2003 15:13 To: 'OJB Users List' Subject: RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem Hey Wally, So if I call

RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem

2003-12-04 Thread oliver . matz
Hello, I do not know about your model, but I suppose Aricle has a reference field productGroup of type ProduktGroup and an Integer (or String) field of type productGroupId, which is mapped to a foreign key column. Let me ask a question: Why is there a setter for the latter field? Why is that

RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem

2003-12-03 Thread Frank Renaers
Hi, I debugged the OJB source code, and indeed the foreign key value itself will be set to null if the related object is not filled in. (PersistenceBrokerImpl - assertFkAssignment) So my example works when the related object is filled in : ar.setProductGroup(pg) Is there a workaround for this ? I

RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem

2003-12-03 Thread Gelhar, Wallace Joseph
Hi Frank, I upgraded from ojb0.9.5 to 1.0 rc4. Some of my unit tests fail because sometimes foreign key values (1 - N relationship) are not stored : Example : - // Create productgroup ProductGroup pg = new ProductGroupBean();

RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem

2003-12-03 Thread Graham Lounder
- From: Gelhar, Wallace Joseph [mailto:[EMAIL PROTECTED] Sent: December 3, 2003 10:07 AM To: OJB Users List Subject: RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem Hi Frank, I upgraded from ojb0.9.5 to 1.0 rc4. Some of my unit tests fail because sometimes foreign key values (1 - N