用的oracle。
原因:数据库A与B都有表名为T的表
解决方法:table里设置schema属性(即数据库名)
<table schema="A" tableName="T" ...
参考: http://blog.youkuaiyun.com/pk490525/article/details/16819307 (MyBatis Generator generatorConfig.xml配置详解)
本文介绍了当两个不同的数据库A和B中存在相同表名T时,在MyBatis Generator配置文件中如何通过设置schema属性来区分不同的表。具体做法是在<table>标签中明确指定schema属性为对应的数据库名称。
用的oracle。
原因:数据库A与B都有表名为T的表
解决方法:table里设置schema属性(即数据库名)
<table schema="A" tableName="T" ...