• 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: Patched MySQL plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patched MySQL plugin


  • Subject: Re: Patched MySQL plugin
  • From: Paul Hoadley <email@hidden>
  • Date: Sat, 2 Oct 2010 09:56:21 +0930

On 02/10/2010, at 8:50 AM, Roger Marshall wrote:

> "Dates (1-day resolution) redux"
> 	http://lists.apple.com/archives/webobjects-dev/2010/Aug/thrd2.html#00132
>
> How are people persisting their Joda-Time values?

I'm using PostgreSQL's DATE type (4 bytes, no time of day, 1 day resolution).

> I was recently trying to configure a prototype for Joda-Time LocalDate, but the Joda-Time classes don't have factory methods, and are declared final, as discussed recently that last thread.

I'm using basically the sample code Henrique Prange supplied in that thread.  It's annoying that their classes are final, but I suppose you only need to write the wrapper code once.

> How about validation/formatters?

At the moment, not much.  I'm just careful about feeding it sane input, and toString() is sufficient for what I'm doing.  Joda has some formatter classes, but I don't think they're going to plug into WOComponent 'formatter' bindings out of the box.


--
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

  • Follow-Ups:
    • Re: Patched MySQL plugin
      • From: Chuck Hill <email@hidden>
References: 
 >Re: Patched MySQL plugin (From: Ray Kiddy <email@hidden>)
 >Re: Patched MySQL plugin (From: Ramsey Gurley <email@hidden>)
 >Re: Patched MySQL plugin (From: Chuck Hill <email@hidden>)
 >Re: Patched MySQL plugin (From: Ramsey Gurley <email@hidden>)
 >Re: Patched MySQL plugin (From: Ramsey Gurley <email@hidden>)
 >Re: Patched MySQL plugin (From: Ray Kiddy <email@hidden>)
 >Re: Patched MySQL plugin (From: Ramsey Gurley <email@hidden>)
 >Re: Patched MySQL plugin (From: Mike Schrag <email@hidden>)
 >Re: Patched MySQL plugin (From: Ramsey Gurley <email@hidden>)
 >Re: Patched MySQL plugin (From: Travis Britt <email@hidden>)
 >Re: Patched MySQL plugin (From: Roger Marshall <email@hidden>)

  • Prev by Date: Re: Patched MySQL plugin
  • Next by Date: Re: Patched MySQL plugin
  • Previous by thread: Re: Joda Time Prototypes [was Re: Patched MySQL plugin]
  • Next by thread: Re: Patched MySQL plugin
  • Index(es):
    • Date
    • Thread