Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 55135 invoked from network); 30 Sep 2010 10:07:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Sep 2010 10:07:53 -0000 Received: (qmail 99668 invoked by uid 500); 30 Sep 2010 10:07:53 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 99582 invoked by uid 500); 30 Sep 2010 10:07:51 -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 99574 invoked by uid 99); 30 Sep 2010 10:07:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Sep 2010 10:07:50 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_RP_RNBL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [81.92.1.9] (HELO smtp-a.tal.de) (81.92.1.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Sep 2010 10:07:41 +0000 Received: from mail1.u-form.de (port-87-234-52-160.static.qsc.de [87.234.52.160]) (Authenticated sender: relay@u-form.de) by smtp-a.tal.de (Postfix) with ESMTP id 669FE102B715 for ; Thu, 30 Sep 2010 12:07:20 +0200 (CEST) Received: from [192.168.10.1] (port=20201 helo=u-form.local) by mail1.u-form.de with esmtp (Exim 4.69) (envelope-from ) id 1P1G2k-0002DE-1b for torque-dev@db.apache.org; Thu, 30 Sep 2010 12:07:14 +0200 Received: from [192.168.16.100] ([192.168.16.100]) by u-form.local with Microsoft SMTPSVC(6.0.3790.4675); Thu, 30 Sep 2010 12:07:14 +0200 Subject: Re: Attibute modifications in schema From: Christoph Engelbert To: Apache Torque Developers List In-Reply-To: References: <4CA388E8.80609@apache.org> <1285834375.17277.191.camel@ws13-ubuntu.u-form.local> Content-Type: text/plain; charset="UTF-8" Date: Thu, 30 Sep 2010 12:03:21 +0200 Message-ID: <1285841001.17277.200.camel@ws13-ubuntu.u-form.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Sep 2010 10:07:14.0290 (UTC) FILETIME=[41517520:01CB6087] X-Virus-Checked: Checked by ClamAV on apache.org Am Donnerstag, den 30.09.2010, 11:43 +0200 schrieb Thomas Fischer: > Hi Christoph, > > > I'll like the idea of using POJOs with annotations and I would be glat > > to see it in Torque as well. This would make things a lot easier since > > we use interfaces and concrete implementations. These implementations > > are wrapped by adapter-classes so annotations would be a great success > > to get rid of those adapters. > > > > I'll like to try myself on annotation-driven approach for Torque if more > > people like the idea. > > Speaking on behalf of myself, not on behalf of the Torque community: > a) the question is how you want to use the annotation. I'd be strongly > against using annotations at runtime, this is not in the spirit of Torque. > There are plenty of frameworks around which do this, and this is terribly > difficult to debug. However, if one uses annotations as just another input > for the generator (i.e. the generator would scan for annotated classes and > generates the SQL, Peer classes etc from it), this would be fine with me. > However, certain restrictions will apply, e.g 1) the annotated classes must > probably be in the same package, 2) either we must remove the necessity > that the Torque objects must inherit from BaseObject or the annotated > classes must inherit from this interface, 3) etc. The intension wasn't to use Runtime-Annotations since the schema needs to be build at compile-time (for maven users resource-generation time). I don't want to change that behaviour since I'm totally agree with it. 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. > 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. > But personally, I will not be putting too much work into it. I'll be happy > to help with any design questions, but I'll definitely not work on the > implementation. > > Thomas > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org > For additional commands, e-mail: torque-dev-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org