You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We attempted to migrate our project from Spring Boot 1.5 to 2.7. Our current project uses MongoDB, but the MongoDB code has not been fully migrated. For example:
The following:
public BulkWriteOperation bulkLoader;
public BulkWriteOperation bulkLoaderForBreakendInfo;
should be converted to:
public BulkOperations bulkLoader;
public BulkOperations bulkLoaderForBreakendInfo;
BasicDBObject should be converted to Document.
To facilitate the migration, we added the OpenRewrite plugins to our pom.xml and ran the recipe using mvn rewrite:run.
Thanks for logging an issue! I think it should be fairly easy to cover these cases, if all we have to do is change those types. YOu can see an example here:
Hi @aakash03chaudhari
For BulkWriteOperation, BulkOperations, and BasicDBObject
Could you please help me with the package name for the above and if any other packages you need recipes, I will help you with the recipe.
Is BulkWriteOperation comes with com.mongodb.BulkWriteOperation?
What problem are you trying to solve?
We attempted to migrate our project from Spring Boot 1.5 to 2.7. Our current project uses MongoDB, but the MongoDB code has not been fully migrated. For example:
The following:
public BulkWriteOperation bulkLoader;
public BulkWriteOperation bulkLoaderForBreakendInfo;
should be converted to:
public BulkOperations bulkLoader;
public BulkOperations bulkLoaderForBreakendInfo;
To facilitate the migration, we added the OpenRewrite plugins to our pom.xml and ran the recipe using mvn rewrite:run.
Here's the relevant part of our pom.xml:
org.openrewrite.maven rewrite-maven-plugin 5.34.0 org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7 org.openrewrite.recipe rewrite-spring 5.13.2The text was updated successfully, but these errors were encountered: