Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 84169 invoked from network); 19 Sep 2005 19:53:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2005 19:53:47 -0000 Received: (qmail 77621 invoked by uid 500); 19 Sep 2005 19:53:46 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 77252 invoked by uid 500); 19 Sep 2005 19:53:45 -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 77239 invoked by uid 99); 19 Sep 2005 19:53:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2005 12:53:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [64.233.162.198] (HELO zproxy.gmail.com) (64.233.162.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2005 12:53:54 -0700 Received: by zproxy.gmail.com with SMTP id z6so1070766nzd for ; Mon, 19 Sep 2005 12:53:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jQxBuBDGAtV6/sB91KHyWi9RUa5OusR3JdvT9g2QZdxWHTEK7sq7rfyspQpg7sBXW+qi/JRORY8AaDXmNF85bLla9BOeeNl5pjteReLGksyU1Ev9laKUVhSfMArUcB2FZZkjeIWcCnhnGLxdywZsaKpHvaFgX2k66VX2FAIht0s= Received: by 10.36.46.15 with SMTP id t15mr2688858nzt; Mon, 19 Sep 2005 12:53:42 -0700 (PDT) Received: by 10.36.118.10 with HTTP; Mon, 19 Sep 2005 12:53:42 -0700 (PDT) Message-ID: Date: Mon, 19 Sep 2005 13:53:42 -0600 From: Larry Meadors Reply-To: lmeadors@apache.org To: user-java@ibatis.apache.org, debradley@gmail.com Subject: Re: Mapping Composition (aka composite property, aka value objects) In-Reply-To: <408a5c1d05091912154450537e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <408a5c1d05091912154450537e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Can you explain more how the model is in Java, and in the database? Larry On 9/19/05, Dan Bradley wrote: > I have one entity, a Product, which holds a Price as a composed (not > related) entity. A Price is a numeric value and a currency code as a > String. Prices don't have a distinct identity in the database - they > are value objects, so this is not the more usual persistent entity to > persistent entity relationship mapping. >=20 > How would you map this using iBATIS? I've tried a variety of things > without success and can't yet find any documentation that covers this > situation. Thanks.