Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 14338 invoked from network); 16 Jan 2004 10:08:42 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Jan 2004 10:08:42 -0000 Received: (qmail 86237 invoked by uid 500); 16 Jan 2004 10:08:14 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 86136 invoked by uid 500); 16 Jan 2004 10:08:14 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 86120 invoked from network); 16 Jan 2004 10:08:13 -0000 Received: from unknown (HELO mail.globaltech-bg.com) (195.24.36.102) by daedalus.apache.org with SMTP; 16 Jan 2004 10:08:13 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.globaltech-bg.com (Postfix) with ESMTP id 25AF613BAF for ; Fri, 16 Jan 2004 08:08:48 -0200 (GMT+2) Received: from mail.globaltech-bg.com ([127.0.0.1]) by localhost (ns.globaltech-bg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29902-06 for ; Fri, 16 Jan 2004 12:08:47 +0200 (EET) Received: from bogdan (unknown [192.168.11.105]) by mail.globaltech-bg.com (Postfix) with SMTP id 74A4313BA7 for ; Fri, 16 Jan 2004 08:08:47 -0200 (GMT+2) Message-ID: <000a01c3dc18$ac10bdd0$690ba8c0@int.globaltechbg.com> From: "Bogdan Vatkov" To: "TORQUE_LIST" Subject: Self referenced table/class in torque ? (torque-gen issue) Date: Fri, 16 Jan 2004 12:08:21 +0200 Organization: Global Communications Technologies MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by F-Prot Antivirus at mail.globaltech-bg.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi All, I am experiencing a problem with a self referenced tables: for a trivial relation --------------------------------------------------------- table/class A A.id A.data A.B_id (references to B.id) --------------------------------------------------------- --------------------------------------------------------- table/class B B.id B.data --------------------------------------------------------- torque will create method series (with different parameters): A.getBs(); that returns List. BUT if A and B are merged into 1 table/class: --------------------------------------------------------- table/class C C.id C.data C.C_id (parent_id) (references to C.id) --------------------------------------------------------- torque engine will not generate method series: C.getCs(); that return List and it will create method C.getC(); that returns C Is that right? or i am missing something. Could this issue be solved wihtout changing the om tempaltes ? With best regards, Bogdan --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org