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.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


Mime
View raw message