Re: java 8 date
Re: java 8 date
- Subject: Re: java 8 date
- From: Theodore Petrosky <email@hidden>
- Date: Sat, 27 May 2017 02:51:56 -0400
I kind of figured that I could do that. I do have a problem with my D2W app.
If I select JavaLocalDate as the prototype then when I bring in a edit page with this propertyKey it shows only as a String in a ERD2WDisplayString component. I tried to create a rule to use the ERDEditDatePopup component, but then there is an error; java.time.LocalDate cannot be cast to com.webobjects.foundation.NSTimestamp.
Am I missing something? There appear to be many advantages to use the Java Local Date instead of NSTimestamp but maybe it is just too new.
Ted
> On May 27, 2017, at 2:25 AM, Paul Hoadley <email@hidden> wrote:
>
> Hi Ted,
>
> On 27 May 2017, at 3:28 pm, Theodore Petrosky <email@hidden> wrote:
>
>> I see in Entity Modeler when I am using the postgresql prototypes there are selections for JavaLocalDate, JavaLocalDateTime. However if I attempt to use them, I am unable to generate migrations
>>
>> what is see in the migrations is:
>> FIX // Unable to create a migration for permitDate (Java Class Name: java.time.LocalDate) with the factoryMethodArgumentType EOFactoryMethodArgumentIsDate
>>
>> What can I do to help? I would like to use the JavaLocalDate and do my date math in Java, but I am a bit lost.
>
> The problem is that buried in Entity Modeler somewhere is some mechanism (is it a Velocity template?) for generating the initial migration that pre-dates these types, and so simply doesn’t know about them. Just create a line in the migration to call the appropriate method yourself, e.g.:
>
> someTable.newDateColumn("permitDate", false);
>
>
> --
> Paul Hoadley
> http://logicsquad.net/
> https://www.linkedin.com/company/logic-squad/
>
>
>
_______________________________________________
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