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 | 28 | <properties> |
29 | 29 | <property name="hibernate.show_sql" value="true" /> |
30 | 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 | 33 | <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> |
35 | 34 | </properties> |
36 | 35 | </persistence-unit> |
... | ... | @@ -61,10 +60,8 @@ |
61 | 60 | <properties> |
62 | 61 | <property name="hibernate.show_sql" value="true" /> |
63 | 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 | 65 | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> |
69 | 66 | </properties> |
70 | 67 | </persistence-unit> | ... | ... |