Skip to content

Commit

Permalink
Ajustes para cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel.Fernandes authored and Michel.Fernandes committed Jun 6, 2017
1 parent 88da7f5 commit f626d8f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SCJ Persistência Roteiro 6 JPA/src/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
<property name="hibernate.show_sql" value="true" />
<!-- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" /> -->
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
<property name="hibernate.cache.use_second_level_cache"
value="true" />
<property name="hibernate.cache.use_second_level_cache" value="true" />
<property name="hibernate.cache.region.factory_class"
value="org.hibernate.cache.ehcache.EhCacheRegionFactory" />
<property name="hibernate.cache.use_query_cache" value="true" />
<property name="net.sf.ehcache.configurationResourceName"
value="ehcache.xml" />
<property name="net.sf.ehcache.configurationResourceName" value="ehcache.xml" />
</properties>
</persistence-unit>
</persistence>

0 comments on commit f626d8f

Please sign in to comment.