Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 76934 invoked from network); 16 Jan 2008 00:19:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2008 00:19:14 -0000 Received: (qmail 79589 invoked by uid 500); 16 Jan 2008 00:18:58 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 79579 invoked by uid 500); 16 Jan 2008 00:18:57 -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 79568 invoked by uid 99); 16 Jan 2008 00:18:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2008 16:18:57 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ashok.madhavan@gmail.com designates 72.14.202.180 as permitted sender) Received: from [72.14.202.180] (HELO ro-out-1112.google.com) (72.14.202.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2008 00:18:33 +0000 Received: by ro-out-1112.google.com with SMTP id o32so3416354rog.12 for ; Tue, 15 Jan 2008 16:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=u8X+5iE0+xg+TQNhMd6zBpal2dvwKI9gowbsWgID3ak=; b=GLQJTugV7sNPPTutJQtzD50Fr25I/CuaAS7vCw0XqJxYA5gqwBCzm6UKBHCXrKA/uoBqs5244pjxunfi9Z9YtUdJ/Qk0rGoAPGakbl1buvHA5oPPmcgz4vhVH7Mr/cEojS2FXCkkSahRvvT3r2gaBaEZqpY1Xc9UlIue/N3jsv4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=a5Jzdapxh5EzDM2qxMtzbZoKRuBd+4NEB1TwKtLXR637vTjG4sXiq9VoZiHzwdGiWJVXSJ2j893NLUdHX3IuDrN6wcXUsj3PUUU/m1P12Ygyp3M5tRCf7KYApo13OaIN0QRt/cjEwJNdqtBKGBZbUJ2IhSJmzTYPWDmtd1gjSBE= Received: by 10.143.36.15 with SMTP id o15mr72202wfj.182.1200442717460; Tue, 15 Jan 2008 16:18:37 -0800 (PST) Received: by 10.143.16.8 with HTTP; Tue, 15 Jan 2008 16:18:37 -0800 (PST) Message-ID: Date: Tue, 15 Jan 2008 16:18:37 -0800 From: "Ashok Madhavan" To: user-java@ibatis.apache.org Subject: Re: [Abator] Support for complex objects In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16683_23409702.1200442717472" References: <478D1455.2040705@mpdft.gov.br> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_16683_23409702.1200442717472 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline is there a way in abator to deduce these relationships based on the database schema ( like Foreign keys ) and automatically create these classes ? regards Ashok On Jan 15, 2008 3:07 PM, Jeff Butler wrote: > Abator does not support complex objects and relationships currently. I've > done some investigation into this, but it is a very complex problem to solve > in a general way. I currently think that this is better done with manual > coding. > > It would be quite easy to extend a generated object, extend a generated > result map, and then write a custom query to add complexity to the generated > objects. I've done that several times. > > Jeff Butler > > On Jan 15, 2008 2:15 PM, Thiago F. G. Albuquerque > wrote: > > > Hi, > > > > Does Abator support complex objects? By "complex object" I mean a domain > > object that has references to other domain objects. > > > > In other words: I need a way to specify the "select" atribute for some > > columns of the generated result map. > > > > I looked in the docs, but didn't find anything. > > > > One way to implement this would be to add a "select" atribute to > > . > > > > [], > > Thiago > > > > > ------=_Part_16683_23409702.1200442717472 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline is there a way in abator to deduce these relationships based on the database schema ( like Foreign keys ) and automatically create these classes ?

regards
Ashok

On Jan 15, 2008 3:07 PM, Jeff Butler < jeffgbutler@gmail.com> wrote:
Abator does not support complex objects and relationships currently.  I've done some investigation into this, but it is a very complex problem to solve in a general way.  I currently think that this is better done with manual coding.
 
It would be quite easy to extend a generated object, extend a generated result map, and then write a custom query to add complexity to the generated objects.  I've done that several times.
 
Jeff Butler

On Jan 15, 2008 2:15 PM, Thiago F. G. Albuquerque <tfga@mpdft.gov.br> wrote:
Hi,

Does Abator support complex objects? By "complex object" I mean a domain object that has references to other domain objects.

In other words: I need a way to specify the "select" atribute for some columns of the generated result map.

I looked in the docs, but didn't find anything.

One way to implement this would be to add a "select" atribute to <columnOverride>.

[],
Thiago



------=_Part_16683_23409702.1200442717472--