-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Make @PropertyMapping support nested annotations #23146
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
Make @PropertyMapping support nested annotations #23146
Conversation
Prior to this commit, annotations annotated with @PropertyMapping that contained nested annotation attributes would result in instances of TypeMappedAnnotation being used as properties. This usually led to errors due to not being able to convert those to Strings. This commit makes it so that nested annotations are recursively mapped to properties. This should allow for more complex configuration to be mapped from annotations.
@otaconix Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@otaconix Thank you for signing the Contributor License Agreement! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool
Update `AnnotationsPropertySource` so that nested annotations are supported. Prior to this commit, annotations annotated with `@PropertyMapping` that contained nested annotation attributes would result in instances of `TypeMappedAnnotation` being used as properties. This usually led to errors due to not being able to convert those to Strings. This commit makes it so that nested annotations are recursively mapped to properties. This should allow for more complex configuration to be mapped from annotations. See gh-23146
Thanks very much for the very comprehensive pull-request. This has now been merged into master and will be in the 2.4 release. |
great job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job
Prior to this commit, annotations annotated with
@PropertyMapping
that containednested annotation attributes would result in instances of
TypeMappedAnnotation
being used as properties. This usually led to errors due to not being able to convert those to Strings.This commit makes it so that nested annotations are recursively mapped to properties. This should allow for more complex configuration to be mapped from annotations.