spring-projects/spring-data-commons

Log warning when param is not annotated with `@ProjectedPayload` (4.0.x)

Closed this issue · 0 comments

Introduce a warning log if a parameter is not annotated with @ProjectedPayload that this style is deprecated and that we will drop support for projections if a parameter is not annotated with @ProjectedPayload.

Also, add this detail to "Deprecations" section of docs/release notes.

Note

Implementation notes:

  • Avoid log spamming: only log the warning once per param (or maybe drop down from warn to debug)
  • Allow users to disable the logging via the typically logging config