Re: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Jakob Braeuchi
euchi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 4:50 PM To: OJB Users List Subject: Re: Antwort: RE: How to map optional 1:1 relationship hi gerhard, sorry, i posted to wrong code. this is it: protected void associateBatched(Collection owners, Collection chi

Antwort: [Fwd: Re: Antwort: RE: How to map optional 1:1 relationship]

2003-10-15 Thread Gerhard . Grosse
Hi Jakob, Yes, your patch did the trick! No more selects with id = null. Thanks! Gerhard Jakob Braeuchi <[EMAIL PROTECTED]> 15.10.2003 17:56 An: [EMAIL PROTECTED] Kopie: Thema: [Fwd: Re: Antwort: RE: How to map optional 1:1 relationship] - Nac

RE: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Boyes, Carl
Hi Jakob, I have implemented your code and it works wonderfully! Many thanks, Carl. -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 4:50 PM To: OJB Users List Subject: Re: Antwort: RE: How to map optional 1:1 relationship hi

Re: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Jakob Braeuchi
17:17 Bitte antworten an "OJB Users List" An: OJB Users List <[EMAIL PROTECTED]> Kopie: Thema: Re: Antwort: RE: How to map optional 1:1 relationship hi carl,gerhard, your right, fkValues may be null and thus a query will be fired. can you confirm this g

Re: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Jakob Braeuchi
An: OJB Users List <[EMAIL PROTECTED]> Kopie: Thema: Re: Antwort: RE: How to map optional 1:1 relationship hi carl,gerhard, your right, fkValues may be null and thus a query will be fired. can you confirm this gerhard ? jakob Boyes, Carl wrote: Hi Jakob, Gerh

Re: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Gerhard . Grosse
sNull(fkValues) so #associateBatched should probably do the same. Gerhard Jakob Braeuchi <[EMAIL PROTECTED]> 15.10.2003 17:17 Bitte antworten an "OJB Users List" An: OJB Users List <[EMAIL PROTECTED]> Kopie: Thema: Re: Antwort: RE: How to ma

Re: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Jakob Braeuchi
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 3:59 PM To: OJB Users List Subject: Re: Antwort: RE: How to map optional 1:1 relationship Hi Jakob, I just checked and you are right. Nevertheless I find a lot of statements like SELECT ... FROM

RE: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Boyes, Carl
: Antwort: RE: How to map optional 1:1 relationship Hi Jakob, I just checked and you are right. Nevertheless I find a lot of statements like SELECT ... FROM ... WHERE id='' in my P6Spy logs, where id is a not nullable primary key. I was assuming these were generated from resolving refer

Re: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Gerhard . Grosse
pie: Thema: Re: Antwort: RE: How to map optional 1:1 relationship hi gerhard, imo this is already implemented. see PersistenceBrokerImpl#getReferencedObject: ... // BRJ: check if we have non null pk values // TBD we should also check primitives // to avoid

Re: Antwort: RE: How to map optional 1:1 relationship

2003-10-15 Thread Jakob Braeuchi
hi gerhard, imo this is already implemented. see PersistenceBrokerImpl#getReferencedObject: ... // BRJ: check if we have non null pk values // TBD we should also check primitives // to avoid creation of unmaterializable proxies for (int i = 0; i < pkVals.length;