Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 52666 invoked from network); 1 Mar 2006 22:25:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 22:25:19 -0000 Received: (qmail 7841 invoked by uid 500); 1 Mar 2006 22:26:04 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 7826 invoked by uid 500); 1 Mar 2006 22:26:04 -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 7815 invoked by uid 99); 1 Mar 2006 22:26:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 14:26:04 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jeffgbutler@gmail.com designates 66.249.82.195 as permitted sender) Received: from [66.249.82.195] (HELO xproxy.gmail.com) (66.249.82.195) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 14:26:02 -0800 Received: by xproxy.gmail.com with SMTP id s17so172030wxc for ; Wed, 01 Mar 2006 14:25:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LW6dcuot+OyEmewe9Ghuwl7UmD2XCN4UM1K6/NxeYsEBWXAbfw7JzaBK0yqqQeTWk1ehA9fMREL4bXjmjFeq1QeysgdqW9ZlbAErh5LMbobJOlLivrWQ5Y3GPqkb65Nf8EAOvgwrW9ZqDmWEaRZNiEkEzH8LKzJfp0GPZL7Tbzw= Received: by 10.70.54.1 with SMTP id c1mr2551249wxa; Wed, 01 Mar 2006 14:25:41 -0800 (PST) Received: by 10.70.70.13 with HTTP; Wed, 1 Mar 2006 14:25:41 -0800 (PST) Message-ID: Date: Wed, 1 Mar 2006 16:25:41 -0600 From: "Jeff Butler" To: user-java@ibatis.apache.org Subject: Re: [Abator] feature request In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5375_7662475.1141251941749" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_5375_7662475.1141251941749 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the intended result: 1. A new domain object called Address 2. Address has a state property with getters/setters 3. An address property in the "outer" domain object with getters/setters 4. The outer object creates a new Address object in its constructor Seems like a lot to infer from a column override. I think I'd rather have some more robust syntax - but I want to make sure I understand the basic idea first. Jeff Butler On 3/1/06, Mark Bennett wrote: > > DISCLAIMER: I know that the address information should have been in a > different table but that is the reason that I need iBatis. > > I would like to be able to define a column override like this. > > > > If I do this it will generate the mappings and sql statements that I *do*= want. > ... > > ... > ST =3D # address.state:VARCHAR#, > ... > But is has a side effect of doing this to my class. > > private String address.state; > > I think this could be useful for a lot of people that want to push data > down into other objects. Also it doesn't seem too far from being able to= do > it. > > Thanks much again! > > > Mark > > ------=_Part_5375_7662475.1141251941749 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Is the intended result:
 
1. A new domain object called Address
2. Address has a state property with getters/setters
3. An address property in the "outer" domain object with get= ters/setters
4. The outer object creates a new Address object in its constructor
 
Seems like a lot to infer from a column override.  I think I= 'd rather have some more robust syntax - but I want to make sure I understa= nd the basic idea first.
 
Jeff Butler

 
On 3/1/06, M= ark Bennett <mark.ben= nett.mail@gmail.com> wrote:
DISCLAIMER:  I know that the address inf= ormation should have been in a different table but that is the reason that = I need iBatis.

I would like to be able to define a column override l= ike this.

        <columnOverride column=3D&= quot;ST" property=3D"address.st= ate"/>

If I do this it will generate the mappings and= sql statements that I *do* want.
...
    <result column=3D"ST= " jdbcType=3D"VARCHAR" property=3D"address.state"/>
...
   &= nbsp;  ST =3D # address.state:VARCHAR#,
...
But is has a side effect of doing = this to my class.

    private String address.state;

I think this could be useful= for a lot of people that want to push data down into other objects.  = Also it doesn't seem too far from being able to do it.=20

Thanks much again!
 

Mark


------=_Part_5375_7662475.1141251941749--