Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 56908 invoked from network); 12 Apr 2005 18:45:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2005 18:45:00 -0000 Received: (qmail 27660 invoked by uid 500); 12 Apr 2005 18:45:00 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 27501 invoked by uid 500); 12 Apr 2005 18:44:58 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 27482 invoked by uid 99); 12 Apr 2005 18:44:58 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from grampa.sonoma.edu (HELO grampa.sonoma.edu) (130.157.18.53) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 12 Apr 2005 11:44:56 -0700 Received: from [130.157.64.151] (helo=[130.157.64.151]) by grampa.sonoma.edu with esmtp (Exim 4.30) id 1DLQNW-0001n6-Is for ibatis-user-java@incubator.apache.org; Tue, 12 Apr 2005 11:44:50 -0700 Message-ID: <425C1721.2000001@sonoma.edu> Date: Tue, 12 Apr 2005 11:44:49 -0700 From: Nic Werner Reply-To: werner@sonoma.edu Organization: Sonoma State University 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: Nested Beans? References: <425582D6.3010705@sonoma.edu> <2fe5ef5b0504071235322df76b@mail.gmail.com> In-Reply-To: <2fe5ef5b0504071235322df76b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for the guidance Brandon, but I'm still lost after checking everything: I want this 'select' command to grab the deviceid, and populate the DeviceBean using this unique tag, is that possible? ReservationBean holds a DeviceBean. The DB table has a field called 'DeviceID' which should refer to the DeviceBean.getTag() I get the error: Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'tag' in class 'java.lang.String' Snippet of my ReservationBean: public final class ReservationBean extends ActionForm { private String ipAddress=""; private DeviceBean device = new DeviceBean(); .... Reservation.xml: --------------------- - Nic. Brandon Goodin wrote: >You can use '.' (dot) notation. So, if you pass in Reservation as >your parameter class you can acess the device id with 'device.id' >(assuming 'id' is the name of your id propety in the Device class) > >Brandon > >On Apr 7, 2005 12:58 PM, Nic Werner wrote: > > >>Greetings, >> The archives aren't searchable right now >>(http://incubator.apache.org/ibatis/site/mailinglists.html), so I have >>this question: >> >>I have a Bean (Reservation), with another Bean (Device) inside it. My >>database just contains the DeviceID in the Reservation table - where/how >>can I use the getter inside the nestedbean to get this DeviceID out? >> >>Thanks, >> >>- Nic. >> >> >>