Hi,

I'm seeing what appears to be an issue when using addPrefetchedRelationship.
If I use addPrefetchedRelationship then each time I call
getCollectionByQuery (using the same query) the size of the related
collection increases each time (by the actual size).  

I've traced through the code and the problem seems to be as follows: 

The following is from RsIterator.java - the second time through owners
contains cached versions of the objects still populated with the related
collection.  The call to prefetchRelationship gets these again and adds them
to the already populated collection.

        // materialize ALL owners of this Iterator
        owners = getOwnerObjects();

        // prefetch relationships and associate with owners
        for (int i = 0; i < prefetchedRel.size(); i++)
        {
            prefetchers[i].prefetchRelationship(owners);
        }

Rgds,
John




-----Original Message-----
From: Yuji Shinozaki [mailto:[EMAIL PROTECTED]
Sent: 05 March 2003 14:14
To: OJB Users List
Cc: [EMAIL PROTECTED]
Subject: RE: Does db-ojb-1.0.rc1.tgz depend on j2ee?



I believe it is not sufficient to set your CLASSPATH environment, as that
will only affect the CLASSPATH that ant itself sees and not the classpath
that ant sets when it invokes javac.

You will need to put j2ee.jar into the ./lib directory (where it will be
automatically added to the compilation classpath) OR edit build.properties
and assign ${j2ee.jar} to point to the location of the j2ee.jar file.

Hope this helps,

yuji
----

On Wed, 5 Mar 2003, Adam Griffiths wrote:

> Hi again,
> Thanks for your replies Thomas. I downloaded j2sdkee1.3.1, installed it to
> c:\j2sdkee1.3.1 and set my CLASSPATH to "C:\j2sdkee1.3.1\lib". I tried
> "bin\build prepare-tutorials"  and got the same error as before. I also
> tried copying j2ee.jar to my C:\j2sdk1.4.1_01\lib and
> C:\j2sdk1.4.1_01\lib\ext but neither work. Is there something I'm not
> understanding?
>
> Adam
>
> The error again:
>
> BUILD FAILED
> file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee.jar is missing! Please get it
> from ht
> tp://java.sun.com/j2ee/. Put it in lib or have the ant property j2ee.jars
> point
> at this jar file.
>
> ________________________________________________________
> s_p_a_m_t_r_a_p       from:[EMAIL PROTECTED]
> Do not email the above address or remove these two lines
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 05 March 2003 06:55
> To: OJB Users List
> Subject: Re: Does db-ojb-1.0.rc1.tgz depend on j2ee?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Yuji Shinozaki                          Computer Systems Senior Engineer
[EMAIL PROTECTED]                       Advanced Technologies Group
(804)924-7171                           Information Technology &
Communication
http://www.people.virginia.edu/~ys2n    University of Virginia


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
************************************************************************
This e-mail and any files transmitted with it are confidential and may be
privileged and are intended solely for the individual named/ for the use of
the individual or entity to whom they are addressed.If you are not the
intended addressee, you should not disseminate, distribute or copy this
e-mail.Please notify the sender immediately if you have received this e-mail
by mistake and delete this e-mail from your system.If you are not the
intended recipient, you are notified that reviewing, disclosing, copying,
distributing or taking any action in reliance on the contents of this e-mail
is strictly prohibited.Please note that any views or opinions expressed in
this e-mail are solely those of the author and do not necessarily represent
those of Traventec Limited.E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, or arrive late or incomplete.Traventec Limited therefore does not
accept liability for any errors or omissions in the contents of this
message, which arise as a result of e-mail transmission.The recipient should
check this e-mail and any attachments for the presence of viruses.This
e-mail has been swept for computer viruses however Traventec Limited accepts
no liability for any damage caused by any virus transmitted by this e-mail.

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

Reply via email to