2011-02-12 124 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> 

奇怪的是,選項卡完成工作並顯示架構的選項,給出的錯誤印象是數據庫配置一切正常。