Return-Path: Delivered-To: apmail-ibatis-user-cs-archive@www.apache.org Received: (qmail 60164 invoked from network); 19 Sep 2006 11:44:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 11:44:31 -0000 Received: (qmail 7323 invoked by uid 500); 19 Sep 2006 11:44:30 -0000 Delivered-To: apmail-ibatis-user-cs-archive@ibatis.apache.org Received: (qmail 7305 invoked by uid 500); 19 Sep 2006 11:44:30 -0000 Mailing-List: contact user-cs-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-cs@ibatis.apache.org Delivered-To: mailing list user-cs@ibatis.apache.org Received: (qmail 7294 invoked by uid 99); 19 Sep 2006 11:44:29 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 04:44:29 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=ibatis.net@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.4 required=5.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([64.233.166.178:10917] helo=py-out-1112.google.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id FA/92-26148-818DF054 for ; Tue, 19 Sep 2006 04:44:25 -0700 Received: by py-out-1112.google.com with SMTP id b29so5176672pya for ; Tue, 19 Sep 2006 04:44:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VfY/meP+At3DQhR085Lnxd7XvzPXWlFxCdTqzjBPjqjvfsiE0XVaTBFjBPzztuvYfj0HGApC0SvIhZVwkA3tzcEdBY544m1GAyYf7fdLejMa8bkUNQAPa/tReX95/5heA32oVYrI1/hfmXLBkWfDKr63XWIHIdVsjkhIo2UnFLM= Received: by 10.35.97.17 with SMTP id z17mr25903785pyl; Tue, 19 Sep 2006 04:44:21 -0700 (PDT) Received: by 10.35.108.6 with HTTP; Tue, 19 Sep 2006 04:44:19 -0700 (PDT) Message-ID: Date: Tue, 19 Sep 2006 13:44:19 +0200 From: "Gilles Bayon" To: user-cs@ibatis.apache.org Subject: Re: Ibatis.net 1.51 1:N or N:M clarification In-Reply-To: <450FA3D7.6000000@elexar.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <450FA3D7.6000000@elexar.net> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/19/06, Dario Cecere wrote: > Hi, this is my first list message! first i would like to thank you every > developer for the great work done > > I'm using 1.5.1 NET DataMapper to design a domain, and i need to model > some classses such as there are someone that have complex lists > attached, and i cannot use lazy loading (i need ALWAYS access to the > child objects), > > Looking in the ibatis.net 1.5.1 documentation, i don't know if a JOIN > with 1.N or N:M scenario is supported, e .g. if i can use the > resultMapping=3D"" attribute on resultmap with a IList Property, and in > such case how the resultset will be "splitted" between parent and child > object (i guess would be accoring to the parent primary key, but what > if it is not present in the command?) I gess you speack of 3.5.13. Avoiding N+1 Select Lists (1:M and M:N) As write, the feature that resolves this issue is not implemented but will be in the next release with the attribute groupBy =E0 la Java. > (Documentation says that the feature is not supported but active > discussions are in place, but after these words there is a box that > reccomend not to use JOIN always in a 1:N or M:N scenario versus > lazyloading, so i'm asking for this) > > Another question: would be great to have Ibatis.net supports field > (private, protected), and i saw that 1.5.1 only maps public properties, > altough in this mailing list i noticed some messages regarding this > support, maybe is under developement ? iBATIS support private/public/protected field, public/private/protected properties as constructor. Documentation 3.5.4.1. property The property attribute is the name of a field or a property of the result object that will be returned by the Mapped Statement. The name can be used more than once depending on the number of times it is needed to populate the results. > > Thanks in advance, (i know, there are great features implemented and > people asks for other more complex......) > > Dario Cecere > > > > --=20 Cheers, Gilles Wish List