• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to handle dates alone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to handle dates alone


  • Subject: Re: how to handle dates alone
  • From: Theodore Petrosky <email@hidden>
  • Date: Sat, 29 Jan 2011 08:08:46 -0800 (PST)

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@hidden> wrote:

> From: Paul Hoadley <email@hidden>
> Subject: Re: how to handle dates alone
> To: "Theodore Petrosky" <email@hidden>
> Cc: "WebObjects-Dev Mailing List List" <email@hidden>
> 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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: how to handle dates alone (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: ps: database failures not rolling up to eof stack ??
  • Next by Date: ERModern and brain freezing
  • Previous by thread: Re: how to handle dates alone
  • Next by thread: Re: how to handle dates alone
  • Index(es):
    • Date
    • Thread