Why not use Java yourself? I believe in your current scenario, you can easily write a small Java program to do the exact refactoring you are talking about, and ensure that you donβt miss out on this path.
You can write a method that accepts the parameters "pre" (i.e., "com.companyname.project.dao.bean.booking") and "post" (i.e., "com.companyname.project.booking.dao. bean ") and accordingly copies the" pre "structure to the" post "structure.
In this program, I will introduce the main method and the convertPackage (pre, post) method. Then you can have an array of your "pre" and "post" structures, and you can convert them to a new one. It would be best to do this copying to some temporary directory, and not using the original as an additional security measure.
Perhaps my thinking is too simple in this matter, but I saw a program created for this refactoring, one and a half times a day or less.
You will get an additional advantage, knowing exactly what is changing, and not the uncertainty that comes with these automatic tools that can do it right for you or cannot ...
source share