You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Martin Kal?n <ma...@curalia.se> on 2004/02/23 21:17:22 UTC

[OJB] Issue #OJB109 modified

You can view the issue detail at the following URL:

    http://nagoya.apache.org/scarab/issues/id/OJB109

Type
 Defect

Issue ID
 OJB109 (BUG: OJB hangs in recursive loop : stackoverflow)

Modified by
 Martin Kalén
 martin.kalen@curalia.se (martin.kalen@curalia.se)

The following modifications were made to this issue:
---------------------------------------------------------------------

Status changed from "New" to "Closed"
Resolution set to "Invalid"

Reason:
This problem is definately obsoleted and is confirmed to not be present in OJB1.0RC from CVS as of 2004-02-23.

The pseudocode has to be tweaked to add crit2 unambigously with "addAndCriteria". Ie:
Criteria crit = new Criteria();
crit.addEqualTo(attr1, X);
Criteria crit2 = new Criteria();
crit2.addEqualTo(attr2, Y1);
Criteria crit3 = new Criteria();
crit3.addEqualTo(attr2, Y2);
Criteria crit4 = new Criteria();
crit4.addEqualTo(attr2, Y3);
crit2.addOrCriteria(crit3);
crit2.addOrCriteria(crit4);
crit.addAndCriteria(crit2);

There is no problem in executing a query like:
Query q = QueryFactory.newQuery(clazz, crit);
Object o = broker.getObjectByQuery(q);


---------------------------------------------------------------------
This message is automatically generated by the Scarab
issue tracking system.  For more information:
http://scarab.tigris.org/



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org