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,11 +23,14 @@ | ||
| 23 | <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> | 23 | <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> |
| 24 | 24 | ||
| 25 | <class>${package}.domain.Bookmark</class> | 25 | <class>${package}.domain.Bookmark</class> |
| 26 | - | 26 | + |
| 27 | + <exclude-unlisted-classes>true</exclude-unlisted-classes> | ||
| 27 | <properties> | 28 | <properties> |
| 28 | <property name="hibernate.show_sql" value="true" /> | 29 | <property name="hibernate.show_sql" value="true" /> |
| 29 | <property name="hibernate.format_sql" value="false" /> | 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 | <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> | 34 | <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> |
| 32 | </properties> | 35 | </properties> |
| 33 | </persistence-unit> | 36 | </persistence-unit> |
| @@ -54,11 +57,14 @@ | @@ -54,11 +57,14 @@ | ||
| 54 | <jta-data-source>java:/DefaultDS</jta-data-source> | 57 | <jta-data-source>java:/DefaultDS</jta-data-source> |
| 55 | 58 | ||
| 56 | <class>${package}.domain.Bookmark</class> | 59 | <class>${package}.domain.Bookmark</class> |
| 57 | - | 60 | + <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| 58 | <properties> | 61 | <properties> |
| 59 | <property name="hibernate.show_sql" value="true" /> | 62 | <property name="hibernate.show_sql" value="true" /> |
| 60 | <property name="hibernate.format_sql" value="false" /> | 63 | <property name="hibernate.format_sql" value="false" /> |
| 61 | <property name="hibernate.hbm2ddl.auto" value="update" /> | 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 | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> | 68 | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> |
| 63 | </properties> | 69 | </properties> |
| 64 | </persistence-unit> | 70 | </persistence-unit> |