Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 75660 invoked from network); 16 Aug 2004 20:41:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Aug 2004 20:41:29 -0000 Received: (qmail 11405 invoked by uid 500); 16 Aug 2004 20:41:16 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 11287 invoked by uid 500); 16 Aug 2004 20:41:15 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 11203 invoked by uid 99); 16 Aug 2004 20:41:15 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [195.188.213.9] (HELO smtp-out6.blueyonder.co.uk) (195.188.213.9) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 16 Aug 2004 13:41:11 -0700 Received: from [10.0.0.2] ([82.38.65.173]) by smtp-out6.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Mon, 16 Aug 2004 21:41:30 +0100 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <41190AD8.5050100@caris.com> References: <41190AD8.5050100@caris.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <98CD4008-EFC4-11D8-9B6E-003065DC754C@blueyonder.co.uk> Content-Transfer-Encoding: 7bit From: robert burrell donkin Subject: Re: [beanutils] copyProperties and Hibernate lazy collections Date: Mon, 16 Aug 2004 21:41:06 +0100 To: "Jakarta Commons Users List" X-Mailer: Apple Mail (2.619) X-OriginalArrivalTime: 16 Aug 2004 20:41:30.0601 (UTC) FILETIME=[68FCAD90:01C483D1] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi graham (hopefully this is better late than never...) i'd suggest subclassing BeanUtilsBean, subclassing copyProperties so that it works the way you want. then register your new instance early in the lifecycle of your application. - robert On 10 Aug 2004, at 18:50, Graham Lounder wrote: > Hey All, > > I'm having problems with BeanUtils.copyProperties() and hibernate's > lazy collections. Almost all my list in hibernate are setup as lazy > list so they will only be populated when they are refereneced for the > first time. This has been working great so far but as soon as I try > to copy on of my objects to an ActionForm, it runs out of memory. I'm > assuming that the copy Properties method is going into the lazy > collections and initializing them (which I don't want to happen). > > Is there any way to tell BeanUtils to only copy Simple Properties? Or > is there a way to get it to ignore properties that return a List > object? > > Cheers, > Graham > > -- > ====================================================================== > Graham Lounder - Java Developer > Spatial Components Division > > CARIS www.caris.com > Tel: +1-506-458-8533 Fax: +1-506-459-3849 115 Waggoner's Lane, > Fredericton, New Brunswick, E3B 2L4, Canada. > > CARIS 2004 - Where Waterways Meet > 9th International User Group Conference and Educational Sessions > 22-25 November 2004, Hotel Hafen Hamburg, Hamburg, Germany > Visit www.caris.com/caris2004 or e-mail caris2004@caris.nl for more. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org