I am having the same problem but could not find any more replies in this
thread. Does anyone know if the problem has been resolved?

-----Original Message-----
From: Stefaan [mailto:[EMAIL PROTECTED]]
Sent: 01 August 2002 12:57
To: OJB Users List
Subject: RE: duplicate output!!!


I'm having the same problem. How could I work around this bug?
Stefaan Nachtergaele

-----Original Message-----
From: Jakob Braeuchi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:16
To: OJB Users List
Subject: Re: duplicate output!!!


hi matthew, anita,

the problem i had, is that the same query was were run _twice_ to retrieve
the n-side.
this problem didn't hurt in most of the tests (except performance) but the
prefetch test failed.

jakob

----- Original Message -----
From: "Matthew Baird" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 7:22 PM
Subject: RE: duplicate output!!!


this is a known bug in the row reader for multiple classes mapped to one
table. I fixed it and checked in a change, but BRJ had an issue with my
change so he reverted it. I don't remember what his issue was. I'm going to
try to fix that again soon. Hopefully BRJ checked in a test that shows the
problem he had with my fix.

Those tests that currently fail on the broker are all due to this problem.

m

-----Original Message-----
From: Anita [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 3:51 AM
To: OJB Users List
Subject: duplicate output!!!


Hi,

I get duplicate records while querying the db .
In the ojb sample
org.apache.ojb.broker.ComplexMultiMappedTableWithCollectionByQueryTest,
ComplexObjectMappedToMultiMappedTableD extends
ComplexObjectMappedToMultiMappedTableB

In the db, we have one record with value4=ff and
ojbConcreteClass=org.apache.ojb.broker.ComplexObjectMappedToMultiMappedTable
D
When we run the following statements in
ComplexMultiMappedTableWithCollectionByQueryTest,

crit = new Criteria();
crit.addEqualTo("value4","ff");
q = QueryFactory.newQuery(ComplexObjectMappedToMultiMappedTableB.class,
crit);
iter = broker.getCollectionByQuery(q).iterator();
ComplexObjectMappedToMultiMappedTableB b = null;
while (iter.hasNext())
{
b = (ComplexObjectMappedToMultiMappedTableB) iter.next();
System.out.println(b.getID());
}

here we get 2 records with value4=ff and
ojbConcreteClass=org.apache.ojb.broker.ComplexObjectMappedToMultiMappedTable
D as output

But when we replace the query by
q = QueryFactory.newQuery(ComplexObjectMappedToMultiMappedTableD.class,
crit);
we get only one record as the output.

Why do we get a duplication in the first case?

My requirement is :
Suppose i've another class , say classA which has a One-to-Many link to
ComplexObjectMappedToMultiMappedTableB.

If we try to retrieve all ComplexObjectMappedToMultiMappedTableD's through
the link from classA, we get duplicate output as above.

Why does this happen?We use OJB 0.9.4  and DB2 7.2.

Regards,
anita





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



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




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


This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.

 At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk.  All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to 
HPD Software Limited or its affiliates.



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

Reply via email to