[prev in list] [next in list] [prev in thread] [next in thread]
List: ojb-dev
Subject: pathHints per Criteria
From: Jakob Braeuchi <jbraeuchi () gmx ! ch>
Date: 2004-04-24 8:35:01
Message-ID: 408A26B5.6090300 () gmx ! ch
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic