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

Consider both annotation - current field and parent #118

Conversation

AndrewVorobey
Copy link

Fix of problem described here: #117

Copy link
Collaborator

@nvamelichev nvamelichev left a comment

Choose a reason for hiding this comment

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

See comment
#117 (comment)

Copy link
Collaborator

@nvamelichev nvamelichev left a comment

Choose a reason for hiding this comment

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

Minor change in naming requested

Copy link
Collaborator

@nvamelichev nvamelichev left a comment

Choose a reason for hiding this comment

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

The code looks good! Please fix my minor comment about JavaDoc for ColumnNaming, and this PR should be ready to merge.

@nvamelichev nvamelichev self-assigned this Jan 20, 2025
Instead of the legacy YOJ 1.x and 2.x strategy that adds subobject column name as prefix for subobjects' column names
**unless an explicit `Column#name()` annotation is set**, introduce two more consistent strategies:
- Always add subobject column name as prefix (`ColumnNaming.RELATIVE`)
- Never add subobject column name as prefix, treat subobject column as top-level (`ColumnNaming.ABSOLUTE`)
with the more generally applicable `ColumnNaming.RELATIVE` strategy becoming the default in YOJ 3.0.
@nvamelichev nvamelichev force-pushed the consider-parent-column-annotation-if-child-present-117 branch from 73c4aee to 8a5c2f7 Compare January 20, 2025 16:57
@nvamelichev nvamelichev merged commit 3e9fdde into ydb-platform:main Jan 20, 2025
1 check 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