Examples of forCache()


Examples of info.archinnov.achilles.internal.metadata.holder.PropertyMeta.forCache()

        EntityMeta meta = new EntityMeta();
        PropertyMeta pm = mock(PropertyMeta.class, RETURNS_DEEP_STUBS);

        when(context.<CompleteBean>getEntityClass()).thenReturn(CompleteBean.class);
        when(context.getEntityMeta()).thenReturn(meta);
        when(pm.forCache().extractClusteredFieldsIfNecessary()).thenReturn(Sets.newLinkedHashSet("id", "a", "b"));
        when(cache.getIfPresent(cacheKeyCaptor.capture())).thenReturn(ps);

        PreparedStatement actual = manager.getCacheForFieldSelect(session, cache, context, pm);

        assertThat(actual).isSameAs(ps);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.