Yeah, beanutils is a pain that way. 

It does the same (and worse IMO) with other data types (i.e., set "fred"
into an Integer, and it becomes 0, not null, and no exception is
thrown).

You might want to try PropertyUtils.copyProperties() instead. 

It *might* work.

Larry


>>> [EMAIL PROTECTED] 01/07/04 3:22 PM >>>
I'm doing a copyProperties to an Entity from a DTO. Why is it that if a
date field is null, a date is returned as if I had passed a value of 0
to the copy method for the date. I.E. I passed a null date into
copyProperties, but I got back a non-null date. 

What gives? 

Thx,
/tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to