Thank you. I implemented Henrique's solution and it works great to query using 
dates alone.

I am trying to track down a problem with the JasperReports example (from the 
(WOWODC videos). 

When I try to pass a LocalDate to the FetchSpec I get an error that LocalDate 
can not be cast to Date.

I am a little tired right now and I am trying to think of a way around my 
problem.

1. Can I do a query and pass the result array to jasper reports. (I already 
have an array with the objects.)
2. Figure out how to send the LocalDate

I tried to convert the LocalDate to an NSTimestamp for the fetchspec, but then 
I got an JDBC error that the keypath was invalid.

I am going out to get lunch with my daughter and will look again when I get 
back.

My head hurts.

Ted

--- On Fri, 1/28/11, Paul Hoadley <[email protected]> wrote:

> From: Paul Hoadley <[email protected]>
> Subject: Re: how to handle dates alone
> To: "Theodore Petrosky" <[email protected]>
> Cc: "WebObjects-Dev Mailing List List" <[email protected]>
> Date: Friday, January 28, 2011, 7:49 PM
> On 29/01/2011, at 5:30 AM, Theodore
> Petrosky wrote:
> 
> > I tried the Joda Time stuff but it seems that there
> were problems so it was pulled.
> 
> What was recently backed out of Wonder was Ramsey Gurley's
> attempt to integrate the Joda types at a lower level. 
> There are no problems with using Joda types as custom
> types—see the sample project I linked to in my last
> post.  Ramsey is going to re-implement his work as a
> standalone framework when he gets time.  You can wait
> for that, or roll your own following Henrique's sample
> project.
> 
> > So I need to rephrase. How can I have a date column in
> my database and have an object in Webobjects that is date
> only and not care about times and timezones?
> > 
> > Am I clearer?
> 
> Perfectly.  You can do exactly that _today_ using Joda
> Time's LocalDate class.
> 
> 
> -- 
> Paul.
> 
> http://logicsquad.net/
> 
> 
> 



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to