Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 86404 invoked from network); 8 Dec 2004 18:06:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 18:06:28 -0000 Received: (qmail 18799 invoked by uid 500); 8 Dec 2004 18:06:26 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 18499 invoked by uid 500); 8 Dec 2004 18:06:24 -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 18478 invoked by uid 99); 8 Dec 2004 18:06:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from perdition2.onetel.net.uk (HELO perdition2.onetel.net.uk) (212.67.120.102) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 08 Dec 2004 10:06:23 -0800 Received: (qmail 4672 invoked from network); 8 Dec 2004 17:18:26 -0000 Received: from unknown (HELO bolek.coachhouse) (213.78.122.57) by perd2 with SMTP; 8 Dec 2004 17:18:26 -0000 Received: (Exim 3.36) #1 (Debian)) protocol: esmtp id 1Cc6CV-00011G-00 ; Wed, 08 Dec 2004 18:06:07 +0000 Message-ID: <41B7428E.5070305@numerixtechnology.de> Date: Wed, 08 Dec 2004 18:06:06 +0000 From: T E Schmitz Reply-To: mailreg@numerixtechnology.de User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: AW: Saving associated objects References: <9B336061971E8B4E8A324C63BEB2D2EE8C0CB7@ex1.GT.local> <1102523592.29768.5.camel@r2d2> In-Reply-To: <1102523592.29768.5.camel@r2d2> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Sarav, Saravana Krishnan wrote: > My other doubt is, if it's a 1:1 relation between 2 tables, why not > simply merge them? What's the point in having 2 tables with 1:1 > relations. I can think of two examples: 1) You might have two entities that require address data. You don't want to dupicate the address structure. The address relates to exactly one row in one of the two tables. 2) You use Torque and you have an entity which has an associated image per row. The auto-generated code fetches *every* attribute of a table. But you certainly don't want to read the images each time you doSelect n records. I have such a case: I store the image in a separate table PICTURE. In the application, the user can choose search criteria to display a list of PRODUCTs, might be 1000+ records. When he double-clicks a row, he gets the detail view with the PICTURE. -- Regards/Gru�, Tarlika Elisabeth Schmitz --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org