Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 83740 invoked from network); 24 Feb 2009 18:18:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 18:18:24 -0000 Received: (qmail 96367 invoked by uid 500); 24 Feb 2009 18:18:22 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 96354 invoked by uid 500); 24 Feb 2009 18:18:22 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 96345 invoked by uid 99); 24 Feb 2009 18:18:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 10:18:22 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 209.190.212.6 is neither permitted nor denied by domain of seth.m.green@gmail.com) Received: from [209.190.212.6] (HELO atlantech.net) (209.190.212.6) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 18:18:13 +0000 Received: from [66.250.195.82] (account seth@it.com HELO [192.168.1.104]) by atlantech.net (CommuniGate Pro SMTP 5.0.14) with ESMTPSA id 580907 for user-java@ibatis.apache.org; Tue, 24 Feb 2009 13:17:51 -0500 Message-Id: From: Seth Green To: user-java@ibatis.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Updating/Deleteing Objects With One-To-Many Relationships Date: Tue, 24 Feb 2009 13:17:51 -0500 X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org I've spent a fair amount of time reading documentation and googling, and while I have found information on selecting objects with one-to- many relationships, I have yet to find anything on updating and deleting. So, if I have class Person { int id; String name; List cars; } class Person { int id; String name; } And I have 3 tables person ( id, name ) car ( id, name ) person_x_car ( person_id car_id ) How is it that I go about 1) Updating a Person who has changes to their cars 2) Deleting a Person and subsequently deleting the relevant rows in person_x_car Thanks