hi peter,
yes i have a simple testcase :
person having a partner both of class Person implementing IPerson
public class Person implements IPerson
{
...
private Integer idPartner;
private IPerson partner;
...
}
public interface IPerson
{
...
public IPerson getPartner();
...
}
if a person has no partner there is no prxy for it, getPartner() returns
null.
the repository is straight forward:
....
/>
<field-descriptor id="9"
name="idPartner"
column="idPartner"
jdbc-type="INTEGER"
/>
<reference-descriptor
name="partner"
class-ref="brj.ojb.Person"
proxy="true"
>
<foreignkey field-id-ref="9"/>
</reference-descriptor>
...
hth
jakob
----- Original Message -----
From: "Peter Rajsky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 6:06 PM
Subject: 0..1 associations & dynamic proxies
> hello,
> does anybody have 1 to 0..1 associations and uses
> dynamic proxies? what is your experience with it?
> how do you deal with dynamic proxies when the real
> object is null?
>
> thanks, pr
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>