Return-Path: Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 50726 invoked by uid 99); 15 Feb 2005 09:23:22 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp004.mail.ukl.yahoo.com (HELO smtp004.mail.ukl.yahoo.com) (217.12.11.35) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 15 Feb 2005 01:23:20 -0800 Received: from unknown (HELO ?10.0.0.11?) (krisajenkins@81.178.1.69 with login) by smtp004.mail.ukl.yahoo.com with SMTP; 15 Feb 2005 09:23:18 -0000 Received: from 127.0.0.1 (AVG SMTP 7.0.300 [265.8.7]); Tue, 15 Feb 2005 09:23:16 +0000 Message-ID: <4211BF84.5040900@yahoo.co.uk> Date: Tue, 15 Feb 2005 09:23:16 +0000 From: Kris Jenkins User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ibatis-user-java@incubator.apache.org Subject: Re: Indexing POJOs References: <4992c8530502131150311d514c@mail.gmail.com> <20050213213421.11006.qmail@web25001.mail.ukl.yahoo.com> <4992c8530502141613292af996@mail.gmail.com> <4992c85305021416143c3420f@mail.gmail.com> In-Reply-To: <4992c85305021416143c3420f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked Colin Williams wrote: >Kris, > >I tried this and it does try to set the property on the id field, but >of course it throws an error because it has used a default constructor >so the id is of type Object. > >I need some way to indicate to Ibatis that I want to create my object >with a composite key identifier object, say of type CustomerKey, for >instance with the fields specified. > >Your suggestion is part 2, setting the properties of the key object, >is there any solution for part 1. > > Colin, I've just tried it over here without any problems. Can we see the error (and maybe the code, too)? Kris -- Kris Jenkins Email: kris@jenkster.com Blog: http://cafe.jenkster.com/ Wiki: http://wiki.jenkster.com/