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 74254 invoked by uid 99); 6 Feb 2005 04:14:56 -0000 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_YAHOO_RCVD,HTML_20_30,HTML_MESSAGE,HTML_NONELEMENT_20_30 X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web30303.mail.mud.yahoo.com (HELO web30303.mail.mud.yahoo.com) (68.142.200.96) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 05 Feb 2005 20:14:56 -0800 Received: (qmail 48308 invoked by uid 60001); 6 Feb 2005 04:14:54 -0000 Message-ID: <20050206041454.48306.qmail@web30303.mail.mud.yahoo.com> Received: from [216.103.82.130] by web30303.mail.mud.yahoo.com via HTTP; Sat, 05 Feb 2005 20:14:54 PST Date: Sat, 5 Feb 2005 20:14:54 -0800 (PST) From: Kris Rasmussen Subject: Re: Extending a parameter map and column attributes? To: ibatis-user-java@incubator.apache.org, cbegin@ibatis.com In-Reply-To: <16178eb105020412441d281c01@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2096498012-1107663294=:48291" X-Virus-Checked: Checked --0-2096498012-1107663294=:48291 Content-Type: text/plain; charset=us-ascii I don't know if phasing out parameter maps is such a good idea. Right now they are not very useful because you can't do the things I suggested, however if you could then when you use them and change a method name in your java bean you would only have to chage your parameter map and not every statement that uses the java class. I think they would be great if they could do these things. Right now I am having a hell of a time having to update all my insert and update statements when the java beans change. Kris Clinton Begin wrote: Both are good suggestions (please add them to JIRA). The reason behind why there hasn't been much development or evolution around Parameter Maps is twofold: 1) They're a lot simpler than result maps, and require less configuration. 2) Very few people use the element. You can do everything with inline parameters now (#prop,attr1=val1,att2=val2# etc.). I'm dreaming of a day when both the and elements disappear! Cheers, Clinton On Thu, 3 Feb 2005 18:34:55 -0800 (PST), Kris Rasmussen wrote: > Why can you extends a result map but not a parameter map? Also, why can't > you map a parameter in a parameter map to a specific database column so that > order doesn't matter. This would allow you to do things like define a > paramter map for an entire class and then only select the parts that are > required for the specific statement you are interested in. > > Kris > > ________________________________ > Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term' > > --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' --0-2096498012-1107663294=:48291 Content-Type: text/html; charset=us-ascii
I don't know if phasing out parameter maps is such a good idea. Right now they are not very useful because you can't do the things I suggested, however if you could then when you use them and change a method name in your java bean you would only have to chage your parameter map and not every statement that uses the java class. I think they would be great if they could do these things. Right now I am having a hell of a time having to update all my insert and update statements when the java beans change.
 
Kris

Clinton Begin <clinton.begin@gmail.com> wrote:
Both are good suggestions (please add them to JIRA).

The reason behind why there hasn't been much development or evolution
around Parameter Maps is twofold:

1) They're a lot simpler than result maps, and require less configuration.

2) Very few people use the element. You can do
everything with inline parameters now (#prop,attr1=val1,att2=val2#
etc.).

I'm dreaming of a day when both the and
elements disappear!

Cheers,
Clinton


On Thu, 3 Feb 2005 18:34:55 -0800 (PST), Kris Rasmussen
wrote:
> Why can you extends a result map but not a parameter map? Also, why can't
> you map a parameter in a parameter map to a specific database column so that
> order doesn't matter. This would allow you to do things like define a
> paramter map for an entire class and then only select the parts that are
> required for the specific statement you are interested in.
>
> Kris
>
> ________________________________
> Do you Yahoo!?
> Yahoo! Search presents - Jib Jab's 'Second Term'
>
>


Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term' --0-2096498012-1107663294=:48291--