Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 42221 invoked from network); 14 Jun 2004 12:19:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jun 2004 12:19:08 -0000 Received: (qmail 42759 invoked by uid 500); 14 Jun 2004 12:18:55 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 42700 invoked by uid 500); 14 Jun 2004 12:18:55 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 42686 invoked by uid 99); 14 Jun 2004 12:18:55 -0000 Received: from [212.131.130.82] (HELO mail.cbim.it) (212.131.130.82) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 14 Jun 2004 05:18:55 -0700 Received: from cuprouter.cbim.it (cuprouter.cbim.it [192.168.4.10]) by mail.cbim.it (8.11.6/8.11.0) with ESMTP id i5ECoTC05163 for ; Mon, 14 Jun 2004 14:50:29 +0200 Received: from cbim.it (caterina.cbim.it [192.168.4.42]) by cuprouter.cbim.it (8.9.3/8.9.3) with ESMTP id OAA09606 for ; Mon, 14 Jun 2004 14:20:31 +0200 Message-ID: <40CD9790.2080006@cbim.it> Date: Mon, 14 Jun 2004 14:18:24 +0200 From: Ugo Cei Organization: C.B.I.M. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: CForms and Database - 5 Degrees of Separation? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Derek Hohls wrote: > The following steps now seem to be required: > > 1. Update the database - pretty straightforward, assuming that > the new piece of data is just a new attribute on an existing > table... > > 2. Update the TableBean representing where that data is stored, > > 3. Update the persistence layer configuration file - in the > case of Hibernate, this would be a Table.hbm.xml file, 1. Update the TableBean.java file. 2. Automatically generate the mapping file (Table.hbm.xml) from XDcoclet tags included in TableBean.java comments. 3. Update the database using Hibernate's tools. > 4. Update the form binding file to link the data to the bean > (all the fb: widgets), > > 5. Update the form definition file (the fd: widgets), and > > 6. Update the form layout template file (the ft: widgets). > > Whew! All very nice and cleanly separated... but are they? > This seems like a lot of work for what is, essentially, a > very simple change. Forget one step, or make a single typo > and the entire cascade fails... > > Does anyone have any thoughts on whether or not this process > could be simplified or, perhaps automated? Or whether some > type of "meta config file" could be be created, where all the > data is stored, and from which the needed files could readily > be generated? I think that some more automation is required. Generating and keeping up-to-date CForms artifacts from Java sources or some other kind of model shouldn't be too hard, at least for simple cases. The scenario calls out for some "smart" tool to carry out most of the gruntwork and let the developers concentrate on the business logic aspects. Ugo --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org