commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Lounder <>
Subject [beanutils] copyProperties and Hibernate lazy collections
Date Tue, 10 Aug 2004 17:50:16 GMT
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?


Graham Lounder - Java Developer
Spatial Components Division

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 or e-mail for more.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message