db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject pathHints per Criteria
Date Sat, 24 Apr 2004 08:35:01 GMT
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.addEqualTo("cSet.cAttrib", new Integer("10200"));
crit1.addPathClass("cSet", C.class);

// one EDLeaf
Criteria crit2 = new Criteria();
crit2.addEqualTo("cSet.c1Attrib", new Integer("10001"));
crit2.addPathClass("cSet", C1.class);
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 ?


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

View raw message