Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 1.0.0.Beta2
-
Component/s: Java EE
-
Labels:None
-
Git Pull Request:
Description
With the following command the generated settings in persistence.xml are not correct. This might also be the case for other databases and settings, but I didn't test that yet.
persistence setup --provider HIBERNATE --container JBOSS_AS6 --database MYSQL_INNODB --jndiDataSource java:demo
|
It sets the datasource to: java:/DefaultDS (should be java:demo)
It sets the hibernate dialect to: org.hibernate.dialect.HSQLDialect (which should be MySQL5InnoDBDialect)
This issue was partly because I didn't understand correctly what a container is for this plugin, and partly because Forge isn't completely clear about that either.
I fixed both