Package org.hibernate.stat

Examples of org.hibernate.stat.SecondLevelCacheStatistics


    @Test
    public void secondLevelCacheAccessAfterCommit() throws Exception {
        EntityManager em = super.newEntityManagerInstance();
        SessionStatistics sessionStats = getSessionStatistics(em);
        SecondLevelCacheStatistics cacheStats =
                getSecondLevelCacheStatistics(em, HPerson.class.getName());

        HPerson p = em.find(HPerson.class, 3L);
        assertThat(p.getName(), is("Bob Translator"));
View Full Code Here


    @Test
    public void readWriteCacheTest() throws Exception {
        EntityManager em1 = super.newEntityManagerInstance(), em2 =
                super.newEntityManagerInstance();

        SecondLevelCacheStatistics stats =
                getSecondLevelCacheStatistics(em1, HPerson.class.getName());

        em1.getTransaction().begin();
        em2.getTransaction().begin();
View Full Code Here

TOP

Related Classes of org.hibernate.stat.SecondLevelCacheStatistics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.