Commit 212b284084ce6fa12fc8e79001d8068771cea64f
Exists in
master
Merge branch 'master' of github.com:demoiselle/framework into 2.4.0
Showing
1 changed file
with
6 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,13 @@ |
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 | 31 | <property name="hibernate.hbm2ddl.auto" value="update" /> |
32 | + <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> | |
31 | 33 | <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> |
32 | 34 | </properties> |
33 | 35 | </persistence-unit> |
... | ... | @@ -54,11 +56,12 @@ |
54 | 56 | <jta-data-source>java:/DefaultDS</jta-data-source> |
55 | 57 | |
56 | 58 | <class>${package}.domain.Bookmark</class> |
57 | - | |
59 | + <exclude-unlisted-classes>true</exclude-unlisted-classes> | |
58 | 60 | <properties> |
59 | 61 | <property name="hibernate.show_sql" value="true" /> |
60 | 62 | <property name="hibernate.format_sql" value="false" /> |
61 | - <property name="hibernate.hbm2ddl.auto" value="update" /> | |
63 | + <property name="hibernate.hbm2ddl.auto" value="update" /> | |
64 | + <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/> | |
62 | 65 | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> |
63 | 66 | </properties> |
64 | 67 | </persistence-unit> | ... | ... |