Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 23511 invoked from network); 5 Sep 2007 07:49:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2007 07:49:10 -0000 Received: (qmail 16970 invoked by uid 500); 5 Sep 2007 07:49:02 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 16959 invoked by uid 500); 5 Sep 2007 07:49:02 -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 16948 invoked by uid 99); 5 Sep 2007 07:49:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 00:49:02 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 12.170.54.180 is neither permitted nor denied by domain of maomaode@gmail.com) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 07:50:16 +0000 X-IronPort-AV: E=Sophos;i="4.20,210,1186372800"; d="scan'208";a="4964843" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 05 Sep 2007 03:48:38 -0400 Received: from [10.129.9.179] ([10.129.9.179]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Wed, 5 Sep 2007 03:48:38 -0400 Message-ID: <46DE5E99.7070906@gmail.com> Date: Wed, 05 Sep 2007 15:45:29 +0800 From: maomaode User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: Abator - Generated beans extend a base model? References: <46DE168A.8030404@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Sep 2007 07:48:38.0466 (UTC) FILETIME=[2BA1AA20:01C7EF91] X-Virus-Checked: Checked by ClamAV on apache.org > you can use the rootClass attribute. > > targetProject="ForeSight" > > value="com.foresight.base.AbstractBaseModel " /> > Oh, great, thanks, I thought it's in the table, ok, Now, it's clear, but i think if it'll be greater if it's in the table level > > it will do the "public class Post extends Entry ..." stuff. but it > will also override all the methods even if those exist in the parent > class. I can use *ignore*, to exclude those methods, right? I'll give it a try. Thanks James > > regards > Ashok > On 9/5/07, *maomaode* > > wrote: > > Hi, > > I ready have a base model, and is it possible to generate the java > beans > and those beans extend the base model? > > Let say i have a blog.post table, and abator will generate a Post > bean, > but most of the attributes in the Post, already exist in Entry class > > So, I'm wondering, if it's possible to customize the generated Post > bean, and generate a bean like this > > public class Post extends Entry { > ... > } > > Thanks in advance, > James > >