Return-Path: Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 42391 invoked by uid 99); 5 Feb 2005 22:31:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp.syd.swiftdsl.com.au (HELO smtp.syd.swiftdsl.com.au) (218.214.224.138) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 05 Feb 2005 14:31:24 -0800 Received: (qmail 24051 invoked from network); 5 Feb 2005 22:31:24 -0000 Received: from unknown (HELO ?192.168.1.10?) (202.154.115.188) by smtp.syd.swiftdsl.com.au with SMTP; 5 Feb 2005 22:31:24 -0000 Message-ID: <42054939.5070803@swiftdsl.com.au> Date: Sun, 06 Feb 2005 09:31:21 +1100 From: Huy User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ibatis-user-java@incubator.apache.org Subject: Re: Flexible ResultMaps (Again) References: <42043D40.1000405@swiftdsl.com.au> <42052B8F.2000809@friendvu.com> <420540D9.1020005@swiftdsl.com.au> <420544EC.3000201@friendvu.com> <16178eb1050205142520c81a80@mail.gmail.com> In-Reply-To: <16178eb1050205142520c81a80@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked Clinton Begin wrote: > Sure I'll join... ;-) > > In my opinion, using a Map is one step below using a class with public > fields (a.k.a. C-style struct). Both lose the advantage of > encapsulation. However, a Map is worse still in that you also lose > type definition (which fields are on a domain object) and type safety > (which type is each field). Yeah, I hate all that casting stuff you have to do in java when getting things out of collections. Generics thing in java 1.5 might help out with this. Regards, huy