• 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: Thu, 04 Jul 2013 08:18:44 -0500

Just saw the July 1 post by zTed, and that was the problem...

It sounds like you aren't loading the proper EOAttribute class. The one in ERAttributeExtension does not have a line 2216. 

Either you do not have it on your classpath, or it is being loaded after the one in EOAccess. Make sure it is on your class path, make sure it is just below ERExtensions at the top



On Jul 3, 2013, at 10:39 PM, Jeffrey Schmitz <email@hidden> wrote:

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
References: 
 >Re: jodaDateTime and migrations.. (From: Jeffrey Schmitz <email@hidden>)

  • Prev by Date: Re: maven repositories not quite right?
  • Next by Date: trimming text before save???
  • Previous by thread: Re: jodaDateTime and migrations..
  • Next by thread: trimming text before save???
  • Index(es):
    • Date
    • Thread