• 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: what am i doing wrong with this qualifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what am i doing wrong with this qualifier


  • Subject: Re: what am i doing wrong with this qualifier
  • From: John Huss <email@hidden>
  • Date: Wed, 26 Jan 2011 13:09:04 -0600

I don't think there is any way currently to use migrations to create a column with external type "date".  You have to write SQL or modify the PostgresqlPlugIn.

John


On Wed, Jan 26, 2011 at 1:04 PM, Theodore Petrosky <email@hidden> wrote:
Ramsey,

I tried the newDateColumn and I got a :

timestamp without time zone

however I was expecting a date column. Am I missing something?

Ted

--- On Wed, 1/26/11, Ramsey Gurley <email@hidden> wrote:

> From: Ramsey Gurley <email@hidden>
> Subject: Re: what am i doing wrong with this qualifier
> To: "Theodore Petrosky" <email@hidden>
> Cc: "WebObjects Development" <email@hidden>
> Date: Wednesday, January 26, 2011, 9:39 AM
> No, you're doing it right. I haven't
> had a chance to update the 
> migration templates yet.  I need to add a migration
> method for time 
> and make sure that works too.  For now, just change
> that to a 
> newDateColumn method yourself. I believe it should work
> fine.
>
> Ramsey
>
> On Jan 26, 2011, at 9:31 AM, Theodore Petrosky wrote:
>
> > sorry, I didn't copy the list.
> >
> > Great, I will experiment but I did try to add a
> JodaLocalDate
> >
> > I used the prototype and got
> >
> > Prototype: jodaLocalDate
> > External Type:  date
> > Class:  org.joda.time.LocalDate
> > Value Class: org.joda.time.LocalDate
> > Value Type: D
> >
> > Factory and Conversion method  jodaLoalDate
> >
> > but when I asked for the Migrations I got:
> >
> > securitySettingsTable.newBlobColumn("c_a_date",
> false);
> >
> > a new blob column? I expected a date column. Do I need
> to do 
> > something more?
> >>
> >> Ted
> >>
> >>
> >> --- On Wed, 1/26/11, Ramsey Gurley <email@hidden>
> >> wrote:
> >>
> >>> From: Ramsey Gurley <email@hidden>
> >>> Subject: Re: what am i doing wrong with this
> >> qualifier
> >>> To: "Theodore Petrosky" <email@hidden>
> >>> Cc: "WebObjects Development" <email@hidden>
> >>> Date: Wednesday, January 26, 2011, 8:43 AM
> >>>
> >>> On Jan 26, 2011, at 6:47 AM, Theodore Petrosky
> wrote:
> >>>
> >>>>
> >>>> Postgresql supports dates without
> timestamp, I
> >> wish I
> >>> knew how to do this in webobject java. (But
> still call
> >> them
> >>> dates so I can do date math.)
> >>>
> >>> If you are using a very recent version of 54
> Wonder
> >>> (committed in the last week), there are new
> date
> >> prototypes
> >>> using Joda time classes instead of
> NSTimestamps. Joda
> >> allows
> >>> for datetimes, dates, and times without a
> timezone.
> >>> Joda simplifies date math quite a bit too.
> >>>
> >>> Ramsey
> >>
> >>
> >>
> >>
> >
> >
> >
> > _______________________________________________
> > 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
> >
>
>



 _______________________________________________
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

 _______________________________________________
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: what am i doing wrong with this qualifier
      • From: Ramsey Gurley <email@hidden>
References: 
 >Re: what am i doing wrong with this qualifier (From: Ramsey Gurley <email@hidden>)
 >Re: what am i doing wrong with this qualifier (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: what am i doing wrong with this qualifier
  • Next by Date: Re: what am i doing wrong with this qualifier
  • Previous by thread: Re: jodaLocalDate question
  • Next by thread: Re: what am i doing wrong with this qualifier
  • Index(es):
    • Date
    • Thread