2011-02-12 83 views
2

我试图首次使用Spring Roo来生成使用逆向工程的代码。DBRE Spring Roo问题

通过安装PostgreSQL的插件后:

OSGi的安装--url http://spring-roo-repository.springsource.org/release/org/springframework/roo/wrapping/org.springframework.roo.wrapping.postgresql-jdbc3/8.4.701.0001/org.springframework.roo.wrapping.postgresql-jdbc3-8.4.701.0001.jar

我试了下命令:

数据库反思--schema用户

我确定临时TI拥有用户架构在我的数据库(当我使用TAB键,我得到用户的用正确的大小写等玛的名字),但春天​​的反应是:

roo> database introspect --schema 

USER     information_schema pg_catalog 
pg_toast_temp_1  public 
roo> database introspect --schema USER 
Schema 'USER' does not exist or does not have any tables. Note that the schema names of some databases are case-sensitive 

回答

3

我对这个问题有一个后类似的问题和想法我会回答这个问题,即使这个问题已经过了一年。

我的问题是我没有在database.url属性中包含数据库名称。在添加它之后,数据库内省开始工作。

database.url=jdbc\:postgresql\://localhost\:5432/<dbname> 

奇怪的是,选项卡完成工作并显示架构的选项,给出的错误印象是数据库配置一切正常。