Add Hibernate 7 batches 2-6, batch 7, and batch 8: mapping styles, JPA annotations, natural IDs, @Immutable, stored procedures, in-memory test databases, JNDI mocking, proxies, associations, temporal mapping, named queries, HQL, Criteria API, EntityManager bootstrapping, Ehcache 3 L2 cache configuration, HikariCP connection pooling, Hibernate Validator CDI integration, aggregate functions, sorting, pagination, interceptors, and Hibernate Search 8 (Hibernate 7.4.5.Final + Spring Boot 4.1.1 + JDK 25)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<config xmlns="http://www.ehcache.org/v3">
|
||||
<!--
|
||||
Chapter 18's own ehcache.xml, loaded only by the tests in
|
||||
com.ankurm.hibernatedemo.cache, each booting an isolated SessionFactory
|
||||
(see NaturalIdL2CacheTest's pattern in chapter 06) so this never touches
|
||||
the shared Spring context's pinned use_second_level_cache: false.
|
||||
-->
|
||||
<cache alias="productCache">
|
||||
<expiry>
|
||||
<ttl unit="minutes">30</ttl>
|
||||
</expiry>
|
||||
<resources>
|
||||
<heap unit="entries">1000</heap>
|
||||
<offheap unit="MB">10</offheap>
|
||||
</resources>
|
||||
</cache>
|
||||
|
||||
<!-- Required for hibernate.cache.use_query_cache=true. Omitting this region produces the
|
||||
real startup failure captured in docs/output/18-missing-timestamps-region.txt. -->
|
||||
<cache alias="default-update-timestamps-region">
|
||||
<expiry>
|
||||
<none/>
|
||||
</expiry>
|
||||
<resources>
|
||||
<heap unit="entries">5000</heap>
|
||||
</resources>
|
||||
</cache>
|
||||
|
||||
<cache alias="default-query-results-region">
|
||||
<expiry>
|
||||
<ttl unit="minutes">10</ttl>
|
||||
</expiry>
|
||||
<resources>
|
||||
<heap unit="entries">200</heap>
|
||||
</resources>
|
||||
</cache>
|
||||
</config>
|
||||
Reference in New Issue
Block a user