Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 97505 invoked from network); 1 Nov 2006 22:20:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 22:20:11 -0000 Received: (qmail 93628 invoked by uid 500); 1 Nov 2006 22:20:20 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 93610 invoked by uid 500); 1 Nov 2006 22:20:20 -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 93599 invoked by uid 99); 1 Nov 2006 22:20:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 14:20:20 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of landry.p.soules@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 14:20:05 -0800 Received: by ug-out-1314.google.com with SMTP id m2so1706729ugc for ; Wed, 01 Nov 2006 14:19:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=mk5VukbsT6frB8AoeO11UawgRXnPAO2n6kIRal0BBUSIoOFzCgu7p9CTBW+O+Ds8DIB8nEbIWLHnBR+rOMESfCfYbt61m4P1hsG5mdx0XkbDNycrqxIyDSLDAq4Kc01FkR7ad/AEPQ4+plhw5rnd5xKwx/G3xL0N1RPU52q0KXQ= Received: by 10.66.232.10 with SMTP id e10mr8949804ugh; Wed, 01 Nov 2006 14:19:36 -0800 (PST) Received: from ?88.160.96.122? ( [88.160.96.122]) by mx.google.com with ESMTP id e33sm1220095ugd.2006.11.01.14.19.35; Wed, 01 Nov 2006 14:19:35 -0800 (PST) Message-ID: <45491D7C.7010606@gmail.com> Date: Wed, 01 Nov 2006 23:19:40 +0100 From: Landry Soules User-Agent: Thunderbird 1.5.0.7 (X11/20060922) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Complex properties on insert Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, I'm a newbie and couldn't find a single example of how to manage complex properties on insert ? Heres is what i try to do : I have 2 classes : Address and Country. In the relation, of course one address has one country. Country is a stand-alone class, while Address has a property of type Country, something like this : public class Address .... private Country country ...... In the mapping : I have no problem to select an address, but i can't make an insert work. I there a trick i have skipped or can you point me to a sample code, thank you.