On Fri, 11 Jun 2004 [EMAIL PROTECTED] wrote:

> I have a problem : even if I define proxy for a connection, OJB reads the
> linked objects immediately.
> 
> Explanation : I have a class Dossier, wich is the entry point of my
> application. This class is mapped to a DB2 table called TMPDOSSIER. Each
> dossier has a collection of Prestation. Prestation is an abstract class
> with two concrete subclasses called Apg and IJ. Both are mapped to the same
> table TMPPREST. The collection has proxy="true".
> 
> When I read an instance of Dossier and look the result with my debugger, I
> can see that the collection is of type
> org.apache.ojb.broker.accesslayer.ListProxy, but that all elements are
> alraedy instatiated, even before I access Dossier from the result list of
> the query.
> 
> I wonder : what am I doing wrong ?

The problem lies with the collection proxy right ? Well, I think that the
OJB version you're using does not support collection proxies for ODMG. You
should try CVS because I think Brian added a patch for that:

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=7497

Tom


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

Reply via email to