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:
- searches
ibatisconfiguration files - gets ids , persists them in file (or in collection)
- searches .java files in persistence level (that start persistence level package names)
- whenever finds id used in persistence class removes (from collection/file)
- 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
Post a Comment