Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 42795 invoked from network); 3 Apr 2007 15:37:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2007 15:37:55 -0000 Received: (qmail 86585 invoked by uid 500); 3 Apr 2007 15:38:02 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 86317 invoked by uid 500); 3 Apr 2007 15:38:01 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 86255 invoked by uid 99); 3 Apr 2007 15:38:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 08:38:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 08:37:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ACA70714065 for ; Tue, 3 Apr 2007 08:37:32 -0700 (PDT) Message-ID: <17830326.1175614652703.JavaMail.jira@brutus> Date: Tue, 3 Apr 2007 08:37:32 -0700 (PDT) From: "James Burton (JIRA)" To: dev@ibatis.apache.org Subject: [jira] Created: (IBATIS-414) Allow extending the Example classes or allow hand written criteria MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Allow extending the Example classes or allow hand written criteria ------------------------------------------------------------------ Key: IBATIS-414 URL: https://issues.apache.org/jira/browse/IBATIS-414 Project: iBatis for Java Issue Type: Improvement Components: Tools Affects Versions: 2.3.0 Environment: Java 1.5, Maven 2, ANT 1.6.5, Ibatis 2.3.0, abator 1.0.0 Reporter: James Burton I currently have database searches implemented very nicely with abator generated code. I use the Example classes with the 'and..Like' criteria to do this. It works great. However, I now have a requirement to make these searches case-insensitive. After a bit of thinking I decided to try and extend the generated Example classes and override the 'and..Like' methods to add in the required upper() functions that Sybase requires to get true case insensitivity. I need to get a criteria added something like this... addCriterion("upper(code) like", value, "upper(code)"); The problem is, I cannot extend the Example classes because there is no public constructor on the 'Criteria' inner class. Nor does the Example class allow a 'hand written' criteria to be added. This too, would be very useful. Do you think you could add a public constructor or make the existing one public? Either that or add methods to allow adding a hand-written criteria? ..or is there a better way to do this that I have completely missed? If not, Thanks, James -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.