rewrite-spring
rewrite-spring copied to clipboard
Create spring 2.7 data YML file with getReferenceById changes
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
let me know if there's anything else you need from me! @timtebeek