• 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: java 8 date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: java 8 date
      • From: Theodore Petrosky <email@hidden>
References: 
 >java 8 date (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: java 8 date
  • Next by Date: Re: Starting with Maven
  • Previous by thread: java 8 date
  • Next by thread: Re: java 8 date
  • Index(es):
    • Date
    • Thread