Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 79413 invoked from network); 1 Oct 2010 14:24:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 14:24:29 -0000 Received: (qmail 57540 invoked by uid 500); 1 Oct 2010 14:24:29 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 57453 invoked by uid 500); 1 Oct 2010 14:24:28 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 57444 invoked by uid 99); 1 Oct 2010 14:24:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 14:24:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.24.207.26] (HELO mail.seitenbau.net) (217.24.207.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 14:24:19 +0000 Received: from www.seitenbau.net ([192.168.15.18]:8227) by mail.seitenbau.net with esmtp (Exim 4.69) (envelope-from ) id 1P1gWi-0004aH-2C for torque-dev@db.apache.org; Fri, 01 Oct 2010 16:23:56 +0200 In-Reply-To: <1285841001.17277.200.camel@ws13-ubuntu.u-form.local> References: <4CA388E8.80609@apache.org> <1285834375.17277.191.camel@ws13-ubuntu.u-form.local> <1285841001.17277.200.camel@ws13-ubuntu.u-form.local> Subject: Re: Attibute modifications in schema X-KeepSent: 531C09F4:6B8EC548-C12577AF:00332E67; type=4; name=$KeepSent To: "Apache Torque Developers List" X-Mailer: Lotus Notes Release 8.5.1 September 28, 2009 Message-ID: From: Thomas Fischer Date: Fri, 1 Oct 2010 16:23:54 +0200 X-MIMETrack: Serialize by Router on www/seitenbau(Release 8.5HF467 | May 15, 2009) at 10/01/2010 16:23:55 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org > ... > About the problem with inheritance I guess there needs to be some > discussion. There would be one way which possibly most people around > here do not like, that would be bytecode enhancement after compilation. > Since this would be some kind of religious war I'm open to other > possibilites. > > I would like to see some discussion on that topic. My personal goal would be to remove te necessity to inherit from BaseObject. If anything like it is required, the object should rather implement an interface. > > b) I would welcome an annotation-based approach. I do not think > > implementation would be too difficult given the 4.0 generator > > implementation, it would mean to implement just another > > org.apache.torque.generator.source.SourceProvider (there are already two of > > them). Of course some design questions need to be splved, which might be > > difficult in detail, but the implementation to the generator is > > straightforward. > > I would try to implement a SourceProvider in the first stage after there > was some discussion, enough interest and a basic concept how to > implement it. Personally I'm not interested, I'd rather edit an XML file than annotate classes. Others? You can also ask at the users list. I have thought a bit about the AnnotationSourceProvider class. It could be split in two parts: - A general AnnotationSourceProvider which reads annotated classes (this would be in the generator). It would have an annotation processor configured in, which translates the annotations to a source tree. The annotationProcessor interface would also live in the generator. It would get e.g. a list of annotated classes which themselves contain the annotated methods (and members, but personally I do not think annotating members is a good idea) and would be responsible to create a source tree from the annotated classes. General helpers (e.g. add all annotation attributes as attributes of an elment in teh source tree) would also live in the generator. - The annotation processor and the specific annotations would be part of the templates. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org