DBRE Spring Roo问题

时间:2011-02-12 19:48:55

标签: postgresql reverse-engineering spring-roo

我第一次尝试使用Spring Roo来使用逆向工程生成代码。

通过以下方式安装Postgresql插件后

  

osgi install --ur 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 USER

我确定我的数据库中有USER模式(当我使用TAB键时,我得到USER以及其他具有正确区分大小写的shema名称),但是春天响应是:

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

1 个答案:

答案 0 :(得分:3)

在遇到类似的问题之后,我得到了这个问题,并且认为即使这个问题是一年之久我也会回答这个问题。

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

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

奇怪但是标签完成工作并显示模式的选项,给人的印象是数据库配置都很好。