----- Original Message ----- From: "Henri Yandell" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Saturday, September 27, 2003 10:39 PM Subject: [beanutils] some ideas
<snip>
First a question on Dates. Why not support for java.util.Date? It seems that there's not much point having SqlDateConverter, it should just be DateConverter based on util.Date.
Good question; I can't guess why java.sql.Date would be provided and
java.util.Date would not (if anything, it seems like it should be the other
way around).
here how i see it. (maybe craig will give you the authorized version sometime.)
converting java.util.Date's is can of worms. here's a couple of reasons to get you started:
1. not all java.util.Date's are equal (in symantic meaning). they can mean a time, a day, a date-time or a timestamp. the symantic meaning of each determines how it should be converted.
2. it's hard to come up with a good default conversions which are valid worldwide.
the java.sql date-related types are much better defined symantically and good default conversions exist for each.
- robert
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]