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

Add @Name support for value object binding #22492

Closed
philwebb opened this issue Jul 22, 2020 · 1 comment
Closed

Add @Name support for value object binding #22492

philwebb opened this issue Jul 22, 2020 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@philwebb
Copy link
Member

Currently the ValueObjectBinder uses the parameter name when binding properties. This works well in most situations, but prevents us from using Java reserved words as property names. It would be helpful to offer an annotation so that the property name can be defined independently of the parameter name.

@philwebb philwebb added the type: enhancement A general enhancement label Jul 22, 2020
@philwebb philwebb added this to the 2.4.x milestone Jul 22, 2020
@philwebb philwebb self-assigned this Jul 22, 2020
@philwebb philwebb modified the milestones: 2.4.x, 2.4.0-M2 Jul 23, 2020
@snicoll
Copy link
Member

snicoll commented Jul 23, 2020

Reopening as the @Name annotation should be processed by the Configuration Metadata AP to generate the intended property name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants