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

Features should be (de)serialized by using the EFactory, not Jackson's built-in logic #15

Open
hallvard opened this issue Sep 14, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@hallvard
Copy link

I have a model with a custom data type (for LocalDate) and I've implemented corresponding createFromString and convertToString methods in the generated EFactory. To my surprise, I got an Exception saying the java.time.LocalDate type isn't supported (without some extra the Jackson module). Looking at the code, it seems the model's factory isn't used at all. I agree that certain types that are native to JSON (boolean and numbers) can be handled specially, but in general emfjson should use the EFactory like the XML/XMI serialization works.

It should be possible to add an option for supporting both, but IMO the default should be to use the EFactory.

@eneufeld
Copy link
Contributor

Sorry for the delayed reply. We gladly accept a PR for this.

@hallvard
Copy link
Author

hallvard commented Feb 21, 2022 via email

@maho7791
Copy link
Contributor

Hi all,
we are also interested to get this realized. I have seen the PR #26.
What needs to be done, to get this ready? Maybe find time to help out.
Regards,
Mark

@martin-fleck-at
Copy link
Contributor

@maho7791 We basically miss the support for activating this feature through a dedicated option/annotation, see also PR #26.

@ndoschek ndoschek added the help wanted Extra attention is needed label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants