Hi,

If a proxy is not materialized, OJB does not store the real object.
The idea behind this is that if a proxy is not loaded, the object behind the
proxy was not changed by user code.

cheers,
Thomas

> -----Original Message-----
> From: Tadeus Garsva [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 11, 2003 10:15 AM
> To: OJB Users List
> Subject: Proxy in Reference
> 
> 
> Hi,
> 
> I have object A, which have reference to object B - attribute 
> aToB. This 
> reference is proxy=true.
> I set attribute aToB in object A  to proxy of object B.
> After broker.store (I use store(Object a, ObjectModification om), in 
> database I found that object A don't have any reference to object B 
> (foreign key=null).
> Should I materialize proxy of B in object A before store  ?
> If I use ProxyHelper.getRealObject, all references in 
> database are set 
> properly.
> 
> Thanks in advance.
> 
> Best regards
> 
> Tadeus Garsva
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Reply via email to