Open mathewm3 opened 4 months ago
Hi @mathewm3 ; when you say "the replacement code should available", could you give an example? I haven't used Hibernate in a while, and the link you gave only says
The legacy Hibernate Criteria API which was deprecated back in Hibernate 5.x and removed in 6.0. Usually, all queries using the legacy API can be modeled with the JPA Criteria API. In some cases it is necessary to use the Hibernate JPA Criteria extensions.
I notice you've logged this as a bug, whereas we have a slightly different template that might help recipe development for recipe requests: https://github.com/openrewrite/rewrite-hibernate/issues/new?assignees=&labels=recipe&projects=&template=recipe_request.md&title=
If you could provide such before/after examples then we'd be in a better shape to suggest how to develop such a recipe.
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project.
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
No modification was made. The removed packages should be deleted and replacement code should available. https://github.com/hibernate/hibernate-orm/blob/6.0/migration-guide.adoc#legacy-hibernate-criteria-api
What did you see instead?
pom.xml changes were done
changed to
pom.xml file changes from 5.6.15.Final to 6.2.28.Final
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
NA