[OJB-developers] Todo 88 QueryBySQL
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-01-22 15:43:32
|
hi, here's a solution for todo item 88 (QueryBySQL). sample code: ... sql = "select * from tabPerson where name like '%er' "; query = new QueryBySQL(Person.class, sql); broker.getCollectionByQuery(query); ... btw i think the query interface should be reworked the methods getCriteria() and isDistinct() could be moved to a subinterface QueryByCriteria (name already exists i know) and the method getExampleObject() to another subinterface. hth jakob |