Commit c11b0abf367feb33150ca6ea0dbf4ecc4a510a83
1 parent
aab840a9
Exists in
master
Inclusão de propriedade no exemplo para conexão JTA com JBoss 7.
Showing
1 changed file
with
9 additions
and
3 deletions
Show diff stats
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
... | ... | @@ -23,11 +23,14 @@ |
23 | 23 | <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> |
24 | 24 | |
25 | 25 | <class>${package}.domain.Bookmark</class> |
26 | - | |
26 | + | |
27 | + <exclude-unlisted-classes>true</exclude-unlisted-classes> | |
27 | 28 | <properties> |
28 | 29 | <property name="hibernate.show_sql" value="true" /> |
29 | 30 | <property name="hibernate.format_sql" value="false" /> |
30 | - <property name="hibernate.hbm2ddl.auto" value="update" /> | |
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 | 34 | <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> |
32 | 35 | </properties> |
33 | 36 | </persistence-unit> |
... | ... | @@ -54,11 +57,14 @@ |
54 | 57 | <jta-data-source>java:/DefaultDS</jta-data-source> |
55 | 58 | |
56 | 59 | <class>${package}.domain.Bookmark</class> |
57 | - | |
60 | + <exclude-unlisted-classes>true</exclude-unlisted-classes> | |
58 | 61 | <properties> |
59 | 62 | <property name="hibernate.show_sql" value="true" /> |
60 | 63 | <property name="hibernate.format_sql" value="false" /> |
61 | 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"/> | |
62 | 68 | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> |
63 | 69 | </properties> |
64 | 70 | </persistence-unit> | ... | ... |