Re: Java date questions
Re: Java date questions
- Subject: Re: Java date questions
- From: Eric Hermanson <email@hidden>
- Date: Thu, 30 Oct 2003 09:23:54 -0800
On Oct 30, 2003, at 8:17 AM, email@hidden wrote:
Man, this stuff is so confusing. It's not really WO's fault; Java is
confusing enough when dealing with date/times already. But adding one
extra class (NSTimestamp) on to everything else doesn't help much.
I second that sentiment, but I think it's even worse than that. The
real problem originated with the original JDBC specification. For some
reason, (Sun?) decided that it was wise to subclass java.util.Date in
order to override a single "toString" method that formats the date into
an SQL "escape" format string. This means that everyone is forced to
use baloney subclasses (java.sql.Date and java.sql.Timestamp) when
working with the database. Obviously, the JDBC adaptor should accept
standard java.util.Date objects and perform any necessary conversions
internally. Haven't these guys ever heard of DELEGATES?! :)
- Eric
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.