Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C33A94857 for ; Sat, 25 Jun 2011 18:40:10 +0000 (UTC) Received: (qmail 59477 invoked by uid 500); 25 Jun 2011 18:40:10 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 59464 invoked by uid 500); 25 Jun 2011 18:40:10 -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 59456 invoked by uid 99); 25 Jun 2011 18:40:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2011 18:40:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2011 18:40:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C423B43098E for ; Sat, 25 Jun 2011 18:39:47 +0000 (UTC) Date: Sat, 25 Jun 2011 18:39:47 +0000 (UTC) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: <625214781.40668.1309027187799.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1420796683.36818.1308925907660.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (TORQUE-161) Create filler methods for related objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fox resolved TORQUE-161. ------------------------------- Resolution: Fixed Fix Version/s: 4.0 > Create filler methods for related objects > ----------------------------------------- > > Key: TORQUE-161 > URL: https://issues.apache.org/jira/browse/TORQUE-161 > Project: Torque > Issue Type: New Feature > Reporter: Thomas Fox > Assignee: Thomas Fox > Fix For: 4.0 > > > Currently, foreing relations can be filled either by lazy loading or by doSelectJoin... methods. > The former causes one db hit per object and the latter causes much unnecessary data to be transferred if more than thwo related tables are filled. > Therefore, it should be possible to fill related objects by filler methods which take a Collection of objects and load the objects related by a foreign key. > The fill should happen by generating new filler methods in the peer classes. In order not to bloat the public API, the generation of these methods can be switched on by a generation option. The default is that the filler methods are not created. > For example, if the Book table has a foreign key on the author table, the methods Book.Peer.fillAuthors(List) and AuthorPeer.fillBooks(List) should be generated. They return the list of related objects, so cascaded filling is easy. -- This message is automatically generated by JIRA. 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