Skip to content

Conversation

robwgreenjr
Copy link

@robwgreenjr robwgreenjr commented Oct 4, 2025

Issue caused by not setting {element} in navigable path when dealing with collections, which didn't allow correct mapping to TableGroup.


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.


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

Copy link

@danish-ali danish-ali left a comment

Choose a reason for hiding this comment

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

Nice fix for the duplicate segment issue.
The de-dup check uses path.getLocalName().equals(fetchableName), which may skip a valid next-level segment when names repeat across levels (e.g., children/children). Consider comparing the candidate full path vs. current path and skip only when equal, or otherwise scoping the guard to intra-step duplicates. A short comment explaining the rationale would help future readers.

@robwgreenjr
Copy link
Author

@danish-ali Thanks for the comment! There actually was no duplicate issue and my solution was not nice at all 😞. Your comment made me add another test to prove your suggestion wouldn't have helped though! Doing that made me realize my approach was completely wrong, so thank you.

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