API question, replacement for QueryByCriteria(Object)

Antoine Levy-Lambert <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Hi,

I am a slide developer (jakarta slide). I am concerned because  
jakarta slide build fails in Gump.

One of the errors is due to the following line in  
org.apache.slide.store.ojb.property.ElementListPropertyHandler [1] :

                     QueryByCriteria query = new QueryByCriteria 
(propertyPeer);

 From the log of the org.apache.ojb.broker.query.QueryByCriteria  
class (or now interface) [2], the constructor used above was removed  
2 years and 5 months ago. [3]

slide ships with db-ojb version 1.0.1 (yes, this is old).

Could someone kindly suggest how to rewrite the construct above using  
the current ojb API ?

Then I could fix gump, and make slide build against the latest db-ojb.

Thanks very much,

Antoine




[1] http://svn.apache.org/viewvc/jakarta/slide/trunk/src/stores/org/ 
apache/slide/store/ojb/property/ElementListPropertyHandler.java? 
revision=208458&view=markup
[2] http://svn.apache.org/viewvc/db/ojb/trunk/src/java/org/apache/ojb/ 
broker/query/QueryByCriteria.java?view=log
[3]
Revision 364071 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 27 19:55:43 2004 UTC (2 years, 5 months ago) by brj
File length: 15700 byte(s)
Diff to previous 363951 (colored)
better handling for QueryByExample. criteria is built during runtime.
constructor QueryByCriteria(Object anExampleObject) removed !
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.