我正在尝试使用database reverse engineer
...请参阅完整的 Roo v1.3 脚本和 UBUNTU 环境:这个简单的“你好”脚本 https://github.com/ppKrauss/dummy-java-spring/blob/master/roo1/hello3pg.md.
错误:
Located add-ons that may offer this JDBC driver
2 found, sorted by rank; T = trusted developer; R = Roo 1.3 compatible
ID T R DESCRIPTION -------------------------------------------------------------
01 Y Y 9.1.0.901-1_0001 Postgres #jdbcdriver...
02 Y Y 9.1.0.901_0001 Postgres #jdbcdriver...
--------------------------------------------------------------------------------
[HINT] use 'addon info id --searchResultId ..' to see details about a search result
[HINT] use 'addon install id --searchResultId ..' to install a specific search result, or
[HINT] use 'addon install bundle --bundleSymbolicName TAB' to install a specific add-on version
JDBC driver not available for 'org.postgresql.Driver'
NOTES
这是一个变体spring.io/spring-roo http://projects.spring.io/spring-roo/#running-from-shell快速指南 10 行示例。很简单...
这是在项目和数据库 Roo 初始化之后(并且工作正常),
project --topLevelPackage com.testRoo1Hello2pg
jpa setup --provider HIBERNATE --database POSTGRES --databaseName hello2db --userName postgresql --password postgres
database.properties 似乎:
database.driverClassName=org.postgresql.Driver
database.url=jdbc\:postgresql\://localhost\:5432/hello2db
database.username=postgresql
database.password=postgres
spring.jpa.hibernate.naming.strategy=org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.hibernate.ddl-auto=create-drop
失败的命令是:
database reverse engineer --schema public --includeTables "test1"
See roo1/hello3pg.md https://github.com/ppKrauss/dummy-java-spring/blob/master/roo1/hello3pg.md更多细节。