commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <>
Subject Re: [commons-beanutils] convert utils
Date Tue, 19 Aug 2003 20:28:17 GMT
there is no simple switch but i think that it is possible.

you can change the behaviour by registering new converters with 

if you want to vary the behaviour from dynabeans to database then you'll 
need to upgrade to CVS HEAD which contains the latest beanified code. 
create a new BeanUtilsBean instance which will be shared by the database 
conversions and register the new converters with that instance.

hope this helps.

- robert

On Monday, August 18, 2003, at 10:19 AM, srinu rao wrote:

> Hi Craig
> i have a requirement like this when i get the data from data base and set
> the data to dyna beans then for any data type i want to convert null value
> to empty string("") or ("(null)") like this. but i don't want this to be
> happen when i am setting it to database. is there any way that i can 
> specify
> while doing copy property to specify what value to be replaced for "null"
> .
> Thanks
> Srinu
> _________________________________________________________________
> Access Hotmail from your mobile now. 
> Click here.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message