Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8041445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:13:25+00:00 2026-06-05T04:13:25+00:00

I am working on legacy code which has a number of defunct database calls

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:13:27+00:00Added an answer on June 5, 2026 at 4:13 am

    You can do the following:

    Write a small java program that:

    1. Searches all the iBatis configuration files
    2. Gets all the ids and persists them in a file (or in a collection)
    3. Searches all the .java files in the persistence level (that start with the persistence level package names)
    4. Whenever it finds the id used in any persistence class removes it (from the collection/file)
    5. At the end it will print out (into a file) all the ids not found and
      their 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with a legacy database that has a large number of user-defined
I am working on an application which has some legacy code. Here, there is
I am working on a legacy java project which has a number of design
I am working on an old application which has huge code from legacy. Application
I'm working with legacy Java code which returns java.lang.object. I'm passing it into a
I am working in a very large legacy C++ code base which shall remain
I'm working on a section of code that has many possible failure points which
We are a team working on legacy code which is pretty old and written
I am working with some legacy code which uses something like this: void store_data(FILE
I'm working on a project that has a lot of legacy C code. We've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.