Skip to content

Conversation

@cigaly
Copy link
Contributor

@cigaly cigaly commented Feb 22, 2025

Jira issue HHH-19195

To preserve hierarchical ordering of discriminator values LinkedHashMap should be used instead of TreeMap


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.


Copy link
Member

@mbellade mbellade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, just left a couple minor comments on the test class. Thanks!

cigaly added 2 commits March 5, 2025 08:56
          While collecting they are inserted in proper order, but TreeMap will
          not preserver ordering, but sort them alphabetically by names.
          To keep values order LinkedHashMap should be used instead of TreeMap.
@mbellade mbellade merged commit 11ef490 into hibernate:main Mar 5, 2025
23 of 24 checks passed
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.

2 participants