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.time.Instant is not (de)serialized "out of the box" #1416

Closed
gmckerrell opened this issue Jul 6, 2020 · 0 comments · Fixed by #1417
Closed

java.time.Instant is not (de)serialized "out of the box" #1416

gmckerrell opened this issue Jul 6, 2020 · 0 comments · Fixed by #1417

Comments

@gmckerrell
Copy link
Contributor

gmckerrell commented Jul 6, 2020

For non-SQL based datastores, the entity model may typically include Instant attributes. Builtin support for the (de)serialization of this standard types is desirable.

Expected Behavior

ELIDE should provide serialization support for these standard data types out-of-the-box

Current Behavior

ELIDE has to be explicitly set up to coerce these standard type to/from it's ISO8601 string representation "on the wire".

        CoerceUtil.register(Instant.class, new ThirdPartyInstantSerde());

Possible Solution

  • add a new serde for Instant

Context

Using non-SQL datastore, and using JAVA-8 date/time types in the model.

Your Environment

  • JAVA-11
  • ELIDE 4.6.5
@gmckerrell gmckerrell changed the title JAVA-8 Instant and OffsetDateTime are not (de)serialized "out of the box" JAVA-8 Instant is not (de)serialized "out of the box" Jul 6, 2020
@gmckerrell gmckerrell changed the title JAVA-8 Instant is not (de)serialized "out of the box" java.time.Instant is not (de)serialized "out of the box" Jul 6, 2020
@gmckerrell gmckerrell changed the title java.time.Instant is not (de)serialized "out of the box" java.time.Instant is not (de)serialized "out of the box" Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant