Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 29141 invoked from network); 7 May 2007 13:21:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2007 13:21:38 -0000 Received: (qmail 70082 invoked by uid 500); 7 May 2007 13:21:42 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 70072 invoked by uid 500); 7 May 2007 13:21:42 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 70061 invoked by uid 99); 7 May 2007 13:21:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 06:21:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [196.35.77.148] (HELO mfwjhe01.mfw.is.co.za) (196.35.77.148) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 06:21:32 -0700 Received: from as-smtp04.he.businessgateway.co.za (Not Verified[196.26.57.70]) by mfwjhe01.mfw.is.co.za with MailMarshal (v6,1,8,2137) id ; Mon, 07 May 2007 15:18:22 +0200 Received: from pascptwsmeind ([41.245.129.169]) by as-smtp04.he.businessgateway.co.za with Microsoft SMTPSVC(6.0.3790.1830); Mon, 7 May 2007 15:20:30 +0200 From: "Meindert" To: Subject: RE: HOW2: Domain Object Searching Date: Mon, 7 May 2007 15:20:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AceQqKuGZmNwklvaSjSOzXwpz8v1ngAAYewQ In-Reply-To: <10357038.post@talk.nabble.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: X-OriginalArrivalTime: 07 May 2007 13:20:30.0335 (UTC) FILETIME=[7C0C00F0:01C790AA] X-Virus-Checked: Checked by ClamAV on apache.org Did you have a look a http://ibatis.apache.org/abator.html ? It generates a search object -----Original Message----- From: Joe Weder [mailto:Joe.Weder@hj3m.com] Sent: 07 May 2007 03:07 PM To: user-java@ibatis.apache.org Subject: HOW2: Domain Object Searching What does everyone recommend for object searching? I want to support any combination of several properties on each of our applications domain model: Customers, Suppliers, Products, etc. Lets take Customer for example: User wants to see all the customers in the 'north-east' sales region that purchase products from suppliers like 'this and that.' User wants to see all the customers with name like 'something-something' User wants to see ... Customer { String id; String name; Address address; ... } Now, I have a DAO that uses iBatis maps to load and store Customers. But how do I bring in the WHERE concepts? I don't want client code creating SQL and passing it in. I could use a Customer object and pass it in. I've seen Hibernate has some Criteria mechanisms. What do iBatis users use? Anyone use http://www.opensymphony.com/compass/ Compass with iBatis? -- View this message in context: http://www.nabble.com/HOW2%3A-Domain-Object-Searching-tf3703604.html#a103570 38 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.