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 Delivered-To: moderator for ibatis-user-java@incubator.apache.org Received: (qmail 48772 invoked by uid 99); 31 Dec 2004 11:36:54 -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 rose.man.poznan.pl (HELO rose.man.poznan.pl) (150.254.173.3) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 31 Dec 2004 03:36:51 -0800 Received: from [127.0.0.1] (azn45.neoplus.adsl.tpnet.pl [83.27.151.45]) (authenticated bits=0) by rose.man.poznan.pl (8.12.10/8.12.10/auth/ldap/milter/tls) with ESMTP id iBVBabkW026945 for ; Fri, 31 Dec 2004 12:36:41 +0100 (CET) Message-ID: <41D53972.6030405@man.poznan.pl> Date: Fri, 31 Dec 2004 12:35:14 +0100 From: =?ISO-8859-2?Q?Micha=B3_Ma=B3ecki?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; pl-PL; rv:1.7.5) Gecko/20041217 MultiZilla/1.7.0.1c X-Accept-Language: pl MIME-Version: 1.0 To: ibatis-user-java@incubator.apache.org Subject: Re: nested javabeans properties References: <009c01c4ee54$88e26b20$72aafe96@polygonatum> <16178eb1041230100344f4db61@mail.gmail.com> In-Reply-To: <16178eb1041230100344f4db61@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------050503040600050207080601" X-Virus-Scanned: by PSNC antivirus scanner X-Virus-Checked: Checked This is a multi-part message in MIME format. --------------050503040600050207080601 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit Hello Clinton, I have class Condition { int timestamp; Vector attributes; //Vector of key-value class int level; /* constructors, getters, setters, etc*/ } I would like to pass List of condition objects, and to generate following query select ..... from log_events where ( --first Condition object conditions for timestamp and level multiple subqueries for each element of attributes Vector ) OR ( --second Condition object conditions for timestamp and level multiple subqueries for each element of attributes Vector )..... So I have to use first iterate element for the big condition (connected using OR) and nested iterate for all subqueries built using "attribute" Vector; How can this be done?? Micha� Clinton Begin wrote: > Hi Michal, > > >>is it planned to add support for nested javabeans properties, also >>collections? > > > iBATIS supports both of these already. I don't understand enough > about what you're asking to know how to help you. Can you provide > some code examples? > > Clinton > --------------050503040600050207080601 Content-Type: text/x-vcard; charset=utf-8; name="Michal.Malecki.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Michal.Malecki.vcf" begin:vcard fn:Michal Malecki n:Malecki;Michal org:Poznan Supercomputing and Networking Centre email;internet:Michal.Malecki@man.poznan.pl title:M. Sc. x-mozilla-html:FALSE version:2.1 end:vcard --------------050503040600050207080601--