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

Add out of the box support for saving entity field of type ZonedDateTime (and other Java8 date types) in Data Jdbc #394

Closed
brsanthu opened this issue Feb 5, 2020 · 0 comments
Labels
type: improvement A minor improvement to an existing feature
Milestone

Comments

@brsanthu
Copy link

brsanthu commented Feb 5, 2020

Thanks for reporting an issue for Micronaut Data, please review the task list below before submitting the
issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.

NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (http://stackoverflow.com/tags/micronaut) or Gitter (https://gitter.im/micronautfw/). DO NOT use the issue tracker to ask questions.

Task List

  • [1 ] Steps to reproduce provided
  • [ 0] Stacktrace (if present) provided
  • [1 ] Example that reproduces the problem uploaded to Github
  • [ 1] Full description of the issue provided (see below)

Steps to Reproduce

  1. Create an entity with ZonedDateTime field and try to save it using Micronaut Data Jdbc model

Expected Behaviour

Micronaut should support conversion for ZonedDateTime and other Java 8 date types out of the box as it is very common usage.

Actual Behaviour

Errors out stating we need to define TypeConverter to convert from ZonedDateTimeTo java.utils.Date

Environment Information

  • Operating System: any
  • Micronaut Version: 1.3.0
  • JDK Version: Java8+

Example Application

https://github.com/brsanthu/mn-test-zdt

Run the app (mvn compile exec:exec) and open http://localhost:8080/insert which gives an error

@graemerocher graemerocher added the type: improvement A minor improvement to an existing feature label Feb 6, 2020
@graemerocher graemerocher added this to the 1.0.1 milestone Feb 6, 2020
@graemerocher graemerocher modified the milestones: 1.0.1, 1.0.2 Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants