Verify Ibatis Procedures Called in Java -


i working on legacy code has number of defunct database calls in it's ibatis mapping files. hoping connect ibatis mappings java class files - or more accurately find mappings not called java.

the purpose remove calls mapping file , procedures database.

right can see no other way parse mapping file, pick each procedure's java id , search in java class files might called.

has had before? or can see better way tackling problem?

you can following:

write small java program that:

  1. searches ibatis configuration files
  2. gets ids , persists them in file (or in collection)
  3. searches .java files in persistence level (that start persistence level package names)
  4. whenever finds id used in persistence class removes (from collection/file)
  5. at end print out (into file) ids not found , configuration file names

it's easy write program this, take 15 minutes max , save days.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -