Re: [ojb-users] Does getCollectionByQuery() with QueryByExample argument works?
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-06-04 17:11:53
|
hi stefan, have you tried getObjectByQuery() ? hth jakob ----- Original Message ----- From: <Ste...@eu...> To: <obj...@li...> Sent: Tuesday, June 04, 2002 5:50 PM Subject: [ojb-users] Does getCollectionByQuery() with QueryByExample argument works? > What I do wrong? > > I call find() method with persistant object with id attribute (primary key) > set only (all other attributes are null or 0). There is no unittest with > such functionality. > > public Collection find(Object object) { > Query query = new QueryByExample(object); > return broker.getCollectionByQuery(query); > } > > It returns collection of all objects from DB. > > Tnx Stefan > > P.S. I have ojb 0.9 > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Objectbridge-users mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-users > |