Hi Vagula,

Vagula wrote:
Hi All,




            I have a table A which references tables B & C.

            The auto-retrieve of B & C has been set to true.

            While I retrieve a record from table A can I some how stop
the auto-retrieval of B & C.


Currently it's *not* possible to change the object metadata at runtime in a per session/query manner (there are plans to make this possible in further versions).

Alternative, if possible use proxies for your references. In this case OJB will never load referenced objects on retrieve. From OJB 1.0.4 cglib-proxies can be used (OJB.properties file setting) and you only need to set attribute 'proxy' in reference-descriptor and collection-descriptor to true (no need to define interfaces for all referenced classes).
http://db.apache.org/ojb/docu/guides/basic-technique.html#Customizing+the+proxy+mechanism

Or you disable auto-retrieve and use PB.retrieveAllReferences(...). But take care of side effects.
http://db.apache.org/ojb/docu/guides/basic-technique.html#auto-retrieve+setting

regards,
Armin








Thanks and Regards,

Vagula










**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

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

Reply via email to