rewrite-spring icon indicating copy to clipboard operation
rewrite-spring copied to clipboard

Create spring 2.7 data YML file with getReferenceById changes

Open lucashan opened this issue 1 year ago • 1 comments

What's changed?

This pull request creates a new Spring 2.7 data YML file with the recipe information for GetReferenceById changes.

What's your motivation?

As of Springboot v2.7, both getOne() and getById() methods have been deprecated for JpaRepository. The documentation states that these deprecated methods should be replaced with getReferenceById(ID).

Anything in particular you'd like reviewers to focus on?

I'm unfamiliar with how to write the unit test and update the build.gradle.kts file.

Anyone you would like to review specifically?

@timtebeek

Have you considered any alternatives or workarounds?

Any additional context

Checklist

  • [ ] I've added unit tests to cover both positive and negative cases
  • [ ] I've read and applied the recipe conventions and best practices
  • [ ] I've used the IntelliJ IDEA auto-formatter on affected files

lucashan avatar Apr 29 '24 18:04 lucashan

let me know if there's anything else you need from me! @timtebeek

lucashan avatar Apr 30 '24 21:04 lucashan