2018-04-04 14:34

@JFinal Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: ORA-00911: 无效字符

at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:102)
at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:262)
at com.rip.model._JFinalDemoGenerator.main(_JFinalDemoGenerator.java:70)
Caused by: java.sql.SQLException: ORA-00911: 无效字符

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:754)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:804)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1051)
at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:845)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1156)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1315)
at com.alibaba.druid.pool.DruidPooledStatement.executeQuery(DruidPooledStatement.java:140)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.buildColumnMetas(MetaBuilder.java:222)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:97)
... 2 more

2018-04-04 14:27

@JFinal 继承了必须要实现个方法,实现了就在调用时要传一个 dataSource进去,你那里为什么不用??
public MyMetaBuilder(DataSource dataSource) {
super(dataSource);
// TODO Auto-generated constructor stub
}

2018-04-04 11:48

MetaBuilder 覆盖 isSkipTable 方法去实现这个不会用,用addExludedTable去掉了都不行

2018-04-04 11:38

@JFinal要怎么去掉??

2018-04-04 11:34

@JFinal 我连的是orcle的

2018-04-04 11:34

@JFinal 用addExcludedTable去掉也没有用

2018-04-04 11:27

@JFinal但是我数据库没有这个表啊

2018-04-04 10:45

@JFinal primaryKey of table "SYS_IOT_OVER_70794" required by active record pattern 生成实体类报这个是什么错误?

2018-03-27 11:22

@JFinal那个问题解决了,现在有另外一个问题,jfianl里面如果查询返回一个自己定义的pojo在数据库中没有这个表的