Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 19967 invoked from network); 20 Sep 2006 11:40:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Sep 2006 11:40:30 -0000 Received: (qmail 41002 invoked by uid 500); 20 Sep 2006 11:40:29 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 40929 invoked by uid 500); 20 Sep 2006 11:40:29 -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 40917 invoked by uid 99); 20 Sep 2006 11:40:29 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2006 04:40:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([202.71.146.14:21430] helo=tvsinfotech.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 97/A5-00532-2A821154 for ; Wed, 20 Sep 2006 04:40:24 -0700 Received: from TVSILCIBIJ (localhost.localdomain [127.0.0.1]) by tvsinfotech.com (8.13.1/8.13.1) with SMTP id k8KBo05P023921 for ; Wed, 20 Sep 2006 17:20:01 +0530 Received: from 192.10.1.69 ([192.10.1.69] helo=TVSILCIBIJ) by assp.tvsinfotech.com; 20 Sep 2006 17:20:00 +0530 From: "Cibij" To: "'Apache Torque Developers List'" Subject: RE: [jira] Resolved: (TORQUE-55) Generated OM compilation fails when table has 2 foreign keys to another table (and generateBeans=true) Date: Wed, 20 Sep 2006 17:12:57 +0530 Message-ID: <005e01c6dca9$ebc07440$45010ac0@TVSINFO> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Importance: Normal In-Reply-To: <3889720.1158751703803.JavaMail.jira@brutus> X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on localhost X-Virus-Status: Clean X-TVSIL-MailScanner-Information: Please contact the ISP for more information X-TVSIL-MailScanner: Found to be clean X-TVSIL-MailScanner-From: cibij@tvsinfotech.com X-Spam-Status: No X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, We have created a table with four foreign keys.We have successfully created= the OM. Thanks & Regards, Cibi Jayabalan TVS Infotech Ltd. 82 Santhome High Road Chennai. 600028. India Tel: +91-44-24618550 Fax:+91-44-24618545 www.tvsinfotech.com Confidentiality Notice: This transmittal is a confidential communication. I= f you are not the intended recipient, you are hereby notified that you have= received this transmittal in error and that any review, dissemination, dis= tribution or copying of this transmittal is strictly prohibited. If you hav= e received this communication in error, please notify TVSI immediately and = delete this message and all of its attachments, if any forthwith. Please al= so note that possession, distribution in whole or part of unauthorized info= rmation is punishable under Cyber law.=20 -----Original Message----- From: Thomas Fischer (JIRA) [mailto:jira@apache.org] Sent: Wednesday, September 20, 2006 4:58 PM To: torque-dev@db.apache.org Subject: [jira] Resolved: (TORQUE-55) Generated OM compilation fails when table has 2 foreign keys to another table (and generateBeans=3Dtrue) [ http://issues.apache.org/jira/browse/TORQUE-55?page=3Dall ] Thomas Fischer resolved TORQUE-55. ---------------------------------- Fix Version/s: 3.2.1 Resolution: Duplicate > Generated OM compilation fails when table has 2 foreign keys to another t= able (and generateBeans=3Dtrue) > -------------------------------------------------------------------------= ----------------------------- > > Key: TORQUE-55 > URL: http://issues.apache.org/jira/browse/TORQUE-55 > Project: Torque > Issue Type: Bug > Components: Generator > Affects Versions: 3.2 > Environment: JDK 1.5, Torque 3.2 > Reporter: Declan Shanaghy > Fix For: 3.2.1 > > Attachments: project-schema.xml > > > Given the following object model in a project where generateBeans=3Dtrue= =20 > BOOK > ------------------------- > book_id : int > author_id : int (FK) > coauthor_id : int (FK) > AUTHOR > ------------------------ > author_id : int > name : varchar(255) > Compilation of the generated code fails with error messages shown below > C:\Documents and Settings\Declan\bookstore\src\java\com\kazmier\om\BaseAu= thor.java:1123: cannot find symbol > symbol : method addBookFromBean(com.kazmier.om.Book) > location: class com.kazmier.om.Author > result.addBookFromBean(related); > ^ > C:\Documents and Settings\Declan\bookstore\src\java\com\kazmier\om\BaseAu= thor.java:1137: cannot find symbol > symbol : method addBookFromBean(com.kazmier.om.Book) > location: class com.kazmier.om.Author > result.addBookFromBean(related); > The solution is to change lines 1123 & 1137 from > result.addBookFromBean(related); > result.addBookFromBean(related); > to > result.addBookRelatedByAuthorIdFromBean(related); > result.addBookRelatedByCoAuthorIdFromBean(related); --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20=20=20=20=20=20=20=20 --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org --=20 This message has been scanned for viruses and dangerous content by TVSIL MailScanner, and is believed to be clean. --=20 This message has been scanned for viruses and dangerous content by TVSIL MailScanner, and is believed to be clean. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org