Hi IlikeJava,
I can understand your problem. So each deployment environment has different users present. But here all the tables are present in all the schema.
Option 1:
Whether the schema name is same for all mapping files say deployment_environment_A ?
Option 2:
Even schema name changes with in the same deployment_environment_A for each entities?
If it is Option 1, then it can be configured initially in cfg xml file.
Ex :
Schema table
------- -------
one Table1 (No of records : 50)
two Table1 (No of records : 06)
--------------------------------------
Is this how you want to access different records each time ?
You can go through this article for more information.
http://forum.springsource.org/showthrea ... datasource