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 Jakob Braeuchi <jb...@gmx.ch> on 2004/04/24 10:35:01 UTC
pathHints per Criteria
hi all,
thanks to phil warrick ojb now supports pathHints per criteria. this feature
provides much more flexibility than the old pathHints per query.
this sample is taken from testcase PathTest:
// one EDBranch
Criteria crit1 = new Criteria();
crit1.setAlias("alias1");
crit1.addEqualTo("cSet.cAttrib", new Integer("10200"));
crit1.addPathClass("cSet", C.class);
// one EDLeaf
Criteria crit2 = new Criteria();
crit2.setAlias("alias2");
crit2.addEqualTo("cSet.c1Attrib", new Integer("10001"));
crit2.addPathClass("cSet", C1.class);
crit1.addAndCriteria(crit2);
Query query = new QueryByCriteria(B.class, crit1);
Collection allBs = broker.getCollectionByQuery(query);
the pathHints per query are still available but i'm not sure whether this
feature should be deprecated ?
jakob
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org