Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 81765 invoked from network); 31 Dec 2009 05:42:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Dec 2009 05:42:09 -0000 Received: (qmail 9992 invoked by uid 500); 31 Dec 2009 05:42:08 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 9927 invoked by uid 500); 31 Dec 2009 05:42:08 -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 9917 invoked by uid 99); 31 Dec 2009 05:42:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2009 05:42:08 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.211.172] (HELO mail-yw0-f172.google.com) (209.85.211.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2009 05:42:00 +0000 Received: by ywh2 with SMTP id 2so13297952ywh.27 for ; Wed, 30 Dec 2009 21:41:39 -0800 (PST) Received: by 10.101.134.25 with SMTP id l25mr28935641ann.98.1262238099163; Wed, 30 Dec 2009 21:41:39 -0800 (PST) Received: from mail-iw0-f197.google.com (mail-iw0-f197.google.com [209.85.223.197]) by mx.google.com with ESMTPS id 21sm13385791iwn.6.2009.12.30.21.41.38 (version=SSLv3 cipher=RC4-MD5); Wed, 30 Dec 2009 21:41:38 -0800 (PST) Received: by iwn35 with SMTP id 35so8543658iwn.4 for ; Wed, 30 Dec 2009 21:41:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.121.69 with SMTP id g5mr1316172ibr.44.1262238098503; Wed, 30 Dec 2009 21:41:38 -0800 (PST) Date: Thu, 31 Dec 2009 00:41:38 -0500 Message-ID: <8c7de9a60912302141j5c4c0c82uf6ef27eecf3daa8e@mail.gmail.com> Subject: Scala object support in iBATIS 3 From: Chris Reeves To: user-java@ibatis.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hello, I would like to add support for scala objects to iBATIS 3 for a project I'm working on, and I have a few questions before I dive in too deep. >From what I can tell, this basically entails adding a new wrapper in org.apache.ibatis.reflection.wrapper that can handle scala's slightly different property naming conventions. Then, the forObject method in MetaObject would need to use the new wrapper for the appropriate objects. Is that more or less all that is necessary, or have I missed something? I will be playing with this tomorrow, but I though I'd ask the community as well. Assuming I'm on the right track, I wonder if it would make sense to have a factory for wrappers that could be modified as part of the configuration. This would allow the scala support to be added to the project in a contrib module so the main project would have no dependencies on the scala libraries, as I will probably use the ScalaObject marker interface to create the appropriate wrapper. Of course, if no one else is interested in native scala object support, this is moot. However, other getter/setter naming strategies that don't conform to the javabeans spec could also be plugged in if there was a configurable wrapper factory, which probably isn't very useful to most java developers, but may be useful for other jvm languages or some seriously strange legacy cruft. Thanks, Chris --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org