Skip to content

HHH-19362 JsonHelper improvements to handle more mapping types #10376

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbellade
Copy link
Member

https://hibernate.atlassian.net/browse/HHH-19362


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


- Add the `expandProperties` flag that indicates when serializing entier object trees
- Handle entity values, including tracking circular relationships
- Handle plural attribute values
@mbellade
Copy link
Member Author

Switching to draft for now, @beikov suggested changing the JsonHelper serialization approach from invocation of static methods to a visitation pattern where we go through the tree of objects to write as JSON with a stateless visitor. This same visitor could be overridden to perform e.g. entity circularity tracking when needed, separating that logic from the document writer itself.

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 this pull request may close these issues.

1 participant