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 protected]> wrote:

> worked!
> 
> thanks
> 
> On Dec 23, 2012, at 11:40 AM, Ramsey Gurley <[email protected]> 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 protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com
>>> 
>>> This email sent to [email protected]
>> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jeff%40netbrackets.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to