Hi,

Consider that an object A has an association with an object B. Also that
dynamic proxies are in use so that when object A is loaded, a proxy to B is
created and the object B itself is not materialized. Sometimes, before
taking an action, I need to verify if there is a B object associated to A.
This check is done as follows:
if (a.getB() == null) {...}

The problem is that even if there isn't a B associated with A, OJB returns
false because there is always a proxy between A and B. The check is actually
done using the proxy reference which is always present.
How can we handle that?

Thank in advance!
-- 
View this message in context: 
http://www.nabble.com/How-to-check-for-null-values-when-using-proxies--tp15465050p15465050.html
Sent from the Apache DB - ObjectRelationalBridge Users mailing list archive at 
Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to