Re: joda model mysql adaptorValueType error
Re: joda model mysql adaptorValueType error
- Subject: Re: joda model mysql adaptorValueType error
- From: James Cicenia <email@hidden>
- Date: Wed, 15 May 2013 07:37:40 -0500
Yes I did. Turned out it was in the wrong order.
Thanks
On May 15, 2013, at 1:37 AM, Johann Werner <email@hidden> wrote:
> Hi James,
>
> do you have the ERAttributeExtension framework on your classpath? Does it come before JavaEOAccess?
>
> jw
>
>
> Am 14.05.2013 um 15:14 schrieb James Cicenia <email@hidden>:
>
>> Hello -
>>
>> This bug has been driving me a bit batty.
>>
>> 1) Column created via a migration: erAuthenticationRequestTable.newTimestampColumn("requestDate", false);
>> 2) Entity's code:
>>
>> public org.joda.time.DateTime requestDate() {
>> return (org.joda.time.DateTime) storedValueForKey(_ERAuthenticationRequest.REQUEST_DATE_KEY);
>> }
>>
>> public void setRequestDate(org.joda.time.DateTime value) {
>> if (_ERAuthenticationRequest.LOG.isDebugEnabled()) {
>> _ERAuthenticationRequest.LOG.debug( "updating requestDate from " + requestDate() + " to " + value);
>> }
>> takeStoredValueForKey(value, _ERAuthenticationRequest.REQUEST_DATE_KEY);
>> }
>>
>>
>> 3) The error happens before requestDate() is even called.
>>
>> 4) In the model used the erprototypes jodaDateTime prototype.
>>
>> Now I have looked at my other project and I can't see what is different.
>>
>>
>> Error:
>>
>> Caused by: java.lang.IllegalStateException: adaptorValueType: unable to load class named 'DateTime' for attribute requestDate on entity ERTwoFactorAuthenticationRequest
>>
>> Thanks
>> 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