Home » Java » java – Is there a way to map mutliple databases with same table names in a dynamic way?-Exceptionshub

java – Is there a way to map mutliple databases with same table names in a dynamic way?-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

First time I encounter this problem. The situation is:

I have more than 100 SQL databases, each one correspond to a different company and each one have the same three tables (same table names, same column names, same column data type).

Is there some way to map all these databases dynamically?

With dynamically I mean to have one class to which I can refer and make any CRUD operation.

How to&Answers: