sjb

2017-03-28 21:46

// 设置是否生成字典文件
generator.setGenerateDataDictionary(false);
把这个设置为false之后就可以了、、、

sjb

2017-03-28 21:36

@JFinal 可以请问一下为什么会出现这个错误吗
Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: 流已被关闭

sjb

2017-03-28 18:36

查了一下是因为是Long类型的问题?数据库很多number类型的字段

sjb

2017-03-28 18:31

_MappingKit.java可以正常被添加了,但是model和baseModel并没有

sjb

2017-03-28 18:27

新的问题又来了,,有点尴尬

sjb

2017-03-28 18:27

Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: 流已被关闭
at com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator.rebuildColumnMetas(DataDictionaryGenerator.java:205)
at com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator.generate(DataDictionaryGenerator.java:61)
at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:234)
at com.sztr.model._JFinalDemoGenerator.main(_JFinalDemoGenerator.java:56)
Caused by: java.sql.SQLException: 流已被关闭
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.LongAccessor.getBytes(LongAccessor.java:151)
at oracle.jdbc.driver.LongAccessor.getString(LongAccessor.java:193)
at oracle.jdbc.driver.T4CLongAccessor.getString(T4CLongAccessor.java:422)
at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:397)
at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1515)
at com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator.rebuildColumnMetas(DataDictionaryGenerator.java:179)
... 3 more

sjb

2017-03-28 18:00

貌似是某个表没有主键的意思?

sjb

2017-03-28 17:56

大神们帮我看看我的是什么问题,,同样也是oracle数据库的
Build TableMeta ...
Exception in thread "main" java.lang.RuntimeException: primaryKey required by active record pattern
at com.jfinal.plugin.activerecord.generator.MetaBuilder.buildPrimaryKey(MetaBuilder.java:199)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:96)
at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:217)
at com.sztr.model._JFinalDemoGenerator.main(_JFinalDemoGenerator.java:56)