-
Notifications
You must be signed in to change notification settings - Fork 86
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
JpaRepository#getReferenceById(ID id)
recipe didn't replace all getById()
method calls
#658
Comments
hi @rogeriofrsouza ; thanks for the report & offer to help. The best way to get started is with a draft PR containing an additional test, adjusting this reference test to match the situation you're seeing: Lines 36 to 79 in 471d2f8
Then we can from there look to see if there's any adjustments we need to make to the recipe: rewrite-spring/src/main/resources/META-INF/rewrite/spring-data-27.yml Lines 29 to 40 in 471d2f8
If you're finding you can not reproduce the issue with a unit test, then it might make sense to have a look at alternative causes: |
JpaRepository#getReferenceById(ID id)
recipe didn't replace all getById()
method calls
What version of OpenRewrite are you using?
I am using the latest version, probably 8.42.0
How are you running OpenRewrite?
I am using the Maven Command Line, and my project is a single module project, not public.
What is the smallest, simplest way to reproduce the problem?
A project with JPA interfaces with or without an inheritance on
JpaSpecificationExecutor<Company>
.What did you expect to see?
What did you see instead?
JPA method
getById
wasn't replaced.What is the full stack trace of any errors you encountered?
No errors.
Are you interested in contributing a fix to OpenRewrite?
Yes, I can try to help with some guidance.
The text was updated successfully, but these errors were encountered: