Copy <repositories>
<repository>
<id>microstream-releases</id>
<url>https://repo.microstream.one/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>one.microstream</groupId>
<artifactId>cache.hibernate</artifactId>
<version>04.01.00-MS-GA</version>
</dependency>
</dependencies>
Depending on your environment it can be configured in different ways.
Copy <?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1"
xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="...">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
...
<properties>
...
<property name="hibernate.cache.region.factory_class"
value="one.microstream.cache.hibernate.CacheRegionFactory" />
...
</properties>
</persistence-unit>
</persistence>
application.properties application.yml
Copy spring.jpa.properties.hibernate.cache.microstream.missing_cache_strategy=create
spring.jpa.properties.hibernate.cache.region.factory_class=one.microstream.cache.hibernate.CacheRegionFactory
spring.jpa.properties.hibernate.cache.use_query_cache=true
spring.jpa.properties.hibernate.cache.use_second_level_cache=true
spring.jpa.properties.javax.persistence.sharedCache.mode=ALL
Copy spring :
jpa :
properties :
hibernate :
cache :
microstream :
missing_cache_strategy : create
region :
factory_class : one.microstream.cache.hibernate.CacheRegionFactory
use_query_cache : true
use_second_level_cache : true
javax :
persistence :
sharedCache :
mode : ALL