Commit a97f32ea24a197a707d5567ddc064c93fbb35b2b
1 parent
c11b0abf
Exists in
master
corrigindo propriedade JTA com JBoss 6 e 7, para os bancos embarcados
(H2 e HSQLDB)
Showing
1 changed file
with
4 additions
and
7 deletions
Show diff stats
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
| @@ -28,9 +28,8 @@ | @@ -28,9 +28,8 @@ | ||
| 28 | <properties> | 28 | <properties> |
| 29 | <property name="hibernate.show_sql" value="true" /> | 29 | <property name="hibernate.show_sql" value="true" /> |
| 30 | <property name="hibernate.format_sql" value="false" /> | 30 | <property name="hibernate.format_sql" value="false" /> |
| 31 | - <property name="hibernate.hbm2ddl.auto" value="update" /> --> | ||
| 32 | - <!-- set an appropriate dialect as shown below:--> | ||
| 33 | - <!-- <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> | 31 | + <property name="hibernate.hbm2ddl.auto" value="update" /> |
| 32 | + <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> | ||
| 34 | <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> | 33 | <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> |
| 35 | </properties> | 34 | </properties> |
| 36 | </persistence-unit> | 35 | </persistence-unit> |
| @@ -61,10 +60,8 @@ | @@ -61,10 +60,8 @@ | ||
| 61 | <properties> | 60 | <properties> |
| 62 | <property name="hibernate.show_sql" value="true" /> | 61 | <property name="hibernate.show_sql" value="true" /> |
| 63 | <property name="hibernate.format_sql" value="false" /> | 62 | <property name="hibernate.format_sql" value="false" /> |
| 64 | - <property name="hibernate.hbm2ddl.auto" value="update" /> | ||
| 65 | - --> | ||
| 66 | - <!-- set an appropriate dialect as shown below:--> | ||
| 67 | - <!-- <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> | 63 | + <property name="hibernate.hbm2ddl.auto" value="update" /> |
| 64 | + <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/> | ||
| 68 | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> | 65 | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> |
| 69 | </properties> | 66 | </properties> |
| 70 | </persistence-unit> | 67 | </persistence-unit> |