Re: java 8 date
Re: java 8 date
- Subject: Re: java 8 date
- From: Paul Hoadley <email@hidden>
- Date: Sat, 27 May 2017 15:55:02 +0930
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
References: | |
| >java 8 date (From: Theodore Petrosky <email@hidden>) |