jaxio / celerio-angular-quickstart

Generate an Angular 5 CRUD application from an existing database schema (we provide a sample one)
Apache License 2.0
479 stars 138 forks source link

Generated toString() method of Pk class references invalid LocalDateTime.getTime() #17

Closed jdanosborne closed 7 years ago

jdanosborne commented 7 years ago

I have a table with a datetime column as part of the pk and the generated class's toString() method has...

if (isSailingDateSet()) { result.append(getSailingDate().getTime()); }

which leads to an error...

[ERROR] symbol: method getTime() [ERROR] location: class java.time.LocalDateTime

Perhaps this could just omit the getTime()?

This is my only remaining issue so I'll work around them for now and see how the runtime goes.

Dan

nromanetti commented 7 years ago

Which toString() ? the one from the PK class ? If yes, please make sure that you are using the latest templates (git pull).... as this should have been fixed: check this commit (line 151 at the top): https://github.com/jaxio/celerio-angular-quickstart/commit/143d0941fef6fb5a909b53f706e16a8070498283#diff-e1c404f0e6faba491162207bac7dd1f2L151

jdanosborne commented 7 years ago

Yes that one - and just my bad as I hadn't picked up the latest version. Sorted now.