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

JSR310 support in kogito runtime and dataindex #2733

Open
debu999 opened this issue Jan 12, 2023 · 2 comments
Open

JSR310 support in kogito runtime and dataindex #2733

debu999 opened this issue Jan 12, 2023 · 2 comments

Comments

@debu999
Copy link

debu999 commented Jan 12, 2023

Description

Can there be native support to ZonedDateTime in MongoDB java Driver sync. Seems it only have LocalDateTime implemented as part of JSR310
Supported classes are The high level API contains the following key classes:

LocalDate - A date, with no time nor zone-offset
LocalTime - A time, with no date nor zone-offset
LocalDateTime - A date-time, with no zone-offset
OffsetTime - A time and zone-offset, with no date
OffsetDateTime - A date-time and zone-offset
ZonedDateTime - A date-time, zone-offset and time-zone
ZoneOffset - An offset from the time in UTC/GMT
ZoneId - A time-zone identifier, used to find the underlying rules

Also need update to mongodb persistance apis for the same
https://jira.mongodb.org/browse/JAVA-4835

From Mongodb team on the issue
Users wanting alternative data structures and / or more flexibility regarding JSR-310 dates should check out the alternative JSR-310 codecs provider by cbartosiak: bson-codecs-jsr310.

Kogito only registers default mongodb codec and mongo team informed to use the existing codec implementation of jsr310 with https://github.com/cbartosiak/bson-codecs-jsr310
can this be integrated in kogito mongodb integrationn,

Implementation ideas

add codec registration with jsr310codecmongodb into the default mongodb codec in kogito

@ricardozanini
Copy link
Member

cc @cristianonicolai

@debu999
Copy link
Author

debu999 commented Jan 25, 2023

is this being picked upon for implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants