Table configuration with catalog null, schema , and table did not resolve to an

问题:

使用Mybatis generator连接oracle去生成代码的时候,报错:Table configuration with catalog null, schema , and table  did not resolve to any tables

可能原因之一是:

Power Designer 里导出的sql中,带上了双引号。如;

create table "fire_alarm" 
(
   "id"                 NUMBER(6)            not null,
   "title"              VARCHAR2(256)        default NULL,
   "info"               VARCHAR2(512)        default NULL,
   "time"               TIMESTAMP            default NULL,
   constraint PK_FIRE_ALARM primary key ("id")
)

 把所有的引号" 去掉。

 

猜你喜欢

转载自feng-tai-jun.iteye.com/blog/2400280