]
fname lname edited comment on FORGE-2162 at 8/8/15 2:09 PM:
------------------------------------------------------------
I had the same issue.
Finally it works:
removed ~/.forge
For connection I've used both: connectionProfilePassword and userPassword.
Here is it:
{code}$ connection-create-profile --name con --hibernateDialect
org.hibernate.dialect.PostgreSQLDialect --driverClass org.postgresql.Driver
--driverLocation postgresql-9.4-1201.jdbc41.jar --userName name
--connectionProfilePassword password --saveUserPassword --userPassword password --jdbcUrl
jdbc:postgresql://localhost:5432/db --verifyConnection{code}
was (Author: yaroska):
I had the same issue.
Finally it works:
removed ~/.forge
For connection I've used both: connectionProfilePassword and userPassword.
Here is it:
$ connection-create-profile --name con --hibernateDialect
org.hibernate.dialect.PostgreSQLDialect --driverClass org.postgresql.Driver
--driverLocation postgresql-9.4-1201.jdbc41.jar --userName name
--connectionProfilePassword password --saveUserPassword --userPassword password --jdbcUrl
jdbc:postgresql://localhost:5432/db --verifyConnection
Two previous JIRA changes have been undone FORGE-1984 and FORGE-1990
--------------------------------------------------------------------
Key: FORGE-2162
URL:
https://issues.jboss.org/browse/FORGE-2162
Project: Forge
Issue Type: Bug
Components: Database Tools
Affects Versions: 2.12.0.Final, 2.12.3.Final
Environment: Windows 7, JDK7, Jboss AS7 and Wildfly 8.1
Reporter: Gerry Matte
Fix For: 2.x Future
Attachments: config.xml, config.xml.saved
The following two JIRA requests have now returned as bugs.
FORGE-1984 : jpa-generate-entities-from-tables add parameter to select all tables without
prompting (fixed in version 2.8.1)
FORGE-1990 : connection-create-profile fails to retain the database connection password
(fixed in version 2.9.2.Final)
As noted in
https://developer.jboss.org/message/912189#912189 forum posting, the
successful commands to create a connectionProfile and generate jpa entities from a mysql
databse worked without problems in version 2.10.0.Final
On Dec 2, Bruce Link reported problems implementing commands identical to mine but using
forge 2.12.0.Final.
Repeating my own commands that were previously successful, I now encountered the same two
errors that were previously fixed by the above two JIRAs.
I tested with both 2.12.0.Final and with 2.12.3.Final. Both versions failed to retain
the database user password and also failed select all database tables (although the
connection failure may have triggered the second error message)
Please reimplement the changes made with FORGE-1984 and FORGE-1990. I am happy to retest
when you are ready.
Gerry Matte