如何从db-reverse-engineer获取域类输出

时间:2014-07-03 11:47:02

标签: postgresql grails

我是Grails的新手 - 我将它与NetBeans一起使用,并希望使用db-reverse-engineer插件从我的postgresql数据库生成域类。

但是我无法获得域类输出。

我在BuildConfig.groovy中配置了插件

plugins {
    ...
    runtime ":db-reverse-engineer:0.5"
    ...
}

并在Config.groovy中关注

grails.plugin.reveng.packageName = "com.mycompany.db"
grails.plugin.reveng.includeTables = [ 'MyTable2' ]
grails.plugin.reveng.destDir = 'temp_reverse_engineer'

启用db-reverse类的调试后,我得到:

|Starting database reverse engineering, connecting to 'jdbc:postgresql://127.0.0.1:5432/mydb' as 'postgres'
2014-07-03 12:20:34,126 [main] INFO  reveng.ReverseEngineerProgressListener  - Finding tables in org.hibernate.cfg.reveng.SchemaSelection@33e1fcdc
2014-07-03 12:20:34,198 [main] DEBUG reveng.GrailsReverseEngineeringStrategy  - table MyTable1 not included by name
2014-07-03 12:20:34,210 [main] INFO  reveng.ReverseEngineerProgressListener  - Found MyTable2
2014-07-03 12:20:34,211 [main] INFO  reveng.ReverseEngineerProgressListener  - Finding columns for public.MyTable2
2014-07-03 12:20:34,261 [main] INFO  reveng.ReverseEngineerProgressListener  - Finding exported foreignkeys on MyTable2
2014-07-03 12:20:34,392 [main] DEBUG reveng.GrailsPojoExporter  - grails.plugin.reveng.GrailsPojoExporter outputdir:C:\...\MyGrailsApplication\temp_reverse_engineer path: []
|Finished database reverse engineering

因此我指定的表似乎是由db-reverse-engineer找到并处理的,但目标目录仍为空。我已尝试使用/不使用包,并且预先创建了包文件夹结构而没有运气。

由于 戴夫

0 个答案:

没有答案