• 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: jodaDateTime and migrations..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jodaDateTime and migrations..


  • Subject: Re: jodaDateTime and migrations..
  • From: Jeffrey Schmitz <email@hidden>
  • Date: Wed, 03 Jul 2013 22:39:57 -0500

HI All,

I had the same migration problem as below, and doing the suggested fixed it, but now when I try to query the database for an entity that contains a Joda LocalDateTime attribute I get the following error:

java.lang.IllegalStateException: adaptorValueType: unable to load class named 'LocalDateTime' for attribute dateTime on entity Event

For the attribute I chose a prototype of jodaLocalDateTime which gave the following property values in the EOModel:

Data Type: Custom
External Type: TIMESTAMP
Class: org.joda.time.LocalDateTime
Value Class: org.joda.time.LocalDateTime
Value Type: T
Factory Class: er.prototypes.ValueFactory
Factory Method: jodaLocalDateTime
Conversion Class: er.prototypes.ValueConversion
Conversion Method: jodaLocalDateTime
InitArgument: Date

Am using Webobjects 5.4.3 with Frontbase and JodaTime 2.2

Any ideas what may be going on?

Thanks!
Jeff

On Dec 23, 2012, at 1:00 PM, James Cicenia <email@hidden> wrote:

worked!

thanks

On Dec 23, 2012, at 11:40 AM, Ramsey Gurley <email@hidden> wrote:

I use custom migration templates. Drop the EOGenerator folder in your ~/Library/Application Support/WOLips/ directory. Modify as needed.

https://github.com/nullterminated/ponder/tree/master/ERR2d2w/Support

Ramsey


On Dec 23, 2012, at 9:58 AM, James Cicenia wrote:

How does one fix this error:

FIX // Unable to create a migration for dateCreated (Java Class Name: org.joda.time.DateTime) with the factoryMethodArgumentType EOFactoryMethodArgumentIsDate

James


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: jodaDateTime and migrations..
      • From: Jeffrey Schmitz <email@hidden>
  • Prev by Date: Re: maven repositories not quite right?
  • Next by Date: Re: maven repositories not quite right?
  • Previous by thread: Re: Correct URL from webserverConnectURL
  • Next by thread: Re: jodaDateTime and migrations..
  • Index(es):
    • Date
    • Thread