Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] TypeMappings/ImportMappings don't work for Date/DateTime #3943

Open
cbornet opened this issue Oct 6, 2016 · 2 comments · May be fixed by #9846
Open

[Java] TypeMappings/ImportMappings don't work for Date/DateTime #3943

cbornet opened this issue Oct 6, 2016 · 2 comments · May be fixed by #9846

Comments

@cbornet
Copy link
Contributor

cbornet commented Oct 6, 2016

This is because joda which is now the default overrides those values. It also happens if you choose java8 (for example, you choose java8 and want to change OffsetDateTime to Instant or ZonedDateTime).

Note : the workaround is to set dateLibrary to "custom" or "legacy" or "whatever"

@Klaboe
Copy link

Klaboe commented Mar 6, 2018

1,5 years and no progress on this? 2.2.2 was released a year ago?

This is also an issue with SpringCodegen; where the the datelibrary is autimatically set if java8=true.

Using this work-around will mean that i get my ZonedDateTime and Jackson-annotations (I dont seem to be able to turn off the use of the gson-library in JavaClientCodegen), but java8 will not be active.

@webron
Copy link
Contributor

webron commented Mar 6, 2018

@Klaboe PRs are more than welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants