use of org.hibernate.cache.spi.TimestampsCache in project quarkus by quarkusio.
the class JPACacheDisabledTest method testNTransaction.
@Test
@Transactional
public void testNTransaction() {
CacheImplementor cache = (CacheImplementor) session.getSessionFactory().getCache();
TimestampsCache timestampsCache = cache.getTimestampsCache();
Assertions.assertNull(timestampsCache);
}
use of org.hibernate.cache.spi.TimestampsCache in project quarkus by quarkusio.
the class CRUDResource method checkCachingState.
@GET
@Produces(MediaType.TEXT_PLAIN)
@Path("/timestamps")
public String checkCachingState() {
SessionImpl sessionImpl = em.unwrap(SessionImpl.class);
TimestampsCache timestampsCache = sessionImpl.getSessionFactory().getCache().getTimestampsCache();
return timestampsCache.getClass().getName();
}
Aggregations