Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 59138 invoked from network); 4 May 2006 23:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 23:15:54 -0000 Received: (qmail 52107 invoked by uid 500); 4 May 2006 23:15:54 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 51968 invoked by uid 500); 4 May 2006 23:15:54 -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 51957 invoked by uid 99); 4 May 2006 23:15:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 16:15:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 16:15:53 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 75C8D7142A7 for ; Thu, 4 May 2006 23:15:18 +0000 (GMT) Message-ID: <27560409.1146784518480.JavaMail.jira@brutus> Date: Thu, 4 May 2006 23:15:18 +0000 (GMT+00:00) From: "Nicolas Le Griel (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Updated: (TORQUE-21) OM generated code does not compile when bean generation is activated and a table has several references to an other table In-Reply-To: <22095962.1146784038434.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/TORQUE-21?page=all ] Nicolas Le Griel updated TORQUE-21: ----------------------------------- Attachment: ObjectBeanMethods.vm.patch Correction in template > OM generated code does not compile when bean generation is activated and a table has several references to an other table > ------------------------------------------------------------------------------------------------------------------------- > > Key: TORQUE-21 > URL: http://issues.apache.org/jira/browse/TORQUE-21 > Project: Torque > Type: Bug > Components: Generator > Versions: 3.2, 3.2.1 > Reporter: Nicolas Le Griel > Priority: Minor > Fix For: 3.2, 3.2.1 > Attachments: ObjectBeanMethods.vm.patch, test-schema.xml.patch > > There is a bug in Torque OM generation (Java code does not compile) which appears in the following conditions : > torque.complexObjectModel=true, torque.objectIsCaching=true, torque.generateBeans=true and a table has several references to an other table. > The problem can be reproduced with the test case I added in the test-schema.xml.patch file attached (XML definition of table 'multi_referencor' which references table 'referenced' through three columns). If one adds 'multi_rerencor' and 'referenced' table definitions in file test-schema.xml and then runs the Torque test project, test fails during compilation of "base" class generated for table 'referenced' in method : > public static Referenced createReferenced(ReferencedBean bean, IdentityMap createdObjects). > Here is a patch which corrects the defect in template ObjectBeanMethods.vm -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org