[forge-users] How to use Forge 2.10.1.Final jpa-generate-entities-from-tables ?

forge-users at lists.jboss.org forge-users at lists.jboss.org
Tue Dec 2 23:18:20 EST 2014

I tried with /, no difference.

The results in the command line are:

[Projects]$ project-new --named tshirts --topLevelPackage ca.bcit.infosys.tshirts --type war --finalName tshirts ;
***SUCCESS*** Project named 'tshirts' has been created.
[tshirts]$ jpa-setup --provider Hibernate --dbType MYSQL5_INNODB --container JBOSS_AS7 --dataSourceName java:jboss/datasources/tshirtsDS;
***SUCCESS*** Persistence (JPA) is installed.
[persistence.xml]$ connection-create-profile - --name tshirtsConnection --hibernateDialect org.hibernate.dialect.MySQL5InnoDBDialect --driverClass com.mysql.jdbc.Driver --driverLocation D:/Apps/mysql-
connector-java-5.1.33/mysql-connector-java-5.1.33-bin.jar --userName TSHIRTS --userPassword TSHIRTS --jdbcUrl jdbc:mysql:///tshirts?characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconn
ect=true&zeroDateTimeBehavior=convertToNull --verifyConnection true;
***SUCCESS*** Connection profile tshirtsConnection has been saved successfully
[persistence.xml]$ jpa-generate-entities-from-tables - --userPassword TSHIRTS --databaseTables * --connectionProfile tshirtsConnection --targetPackage ca.bcit.infosys.tshirts.model ;
***ERROR*** Access denied for user 'TSHIRTS'@'localhost' (using password: NO)
***ERROR*** At least one database table must be specified

The password is all caps, it works from the command-line mysql client.

I did run the above from the command prompt.  It clearly indicates it is not using the password.

Posted by forums
Original post: https://developer.jboss.org/message/912178#912178

More information about the forge-users mailing list