I am working on legacy code which has a number of defunct database calls in it’s ibatis mapping files. I am hoping to connect the ibatis mappings back to the java class files – or more accurately find which mappings do not get called by the java.
The purpose is to remove the calls from the mapping file and the procedures from the database.
Right now I can see no other way than to parse the mapping file, pick up each procedure’s java id and then do a search in the java class files for where it might be called.
Has someone had to do this before? Or can someone see a better way to tackling this problem?
You can do the following:
Write a small java program that:
iBatisconfiguration filestheir configuration file names
It’s very easy to write a program like this, it will just take a 15 minutes max and will save you days.