Hi,
I see such solution. Passing to the store reference to cache (loadCache
method has second parameter varargs so I can pass cache here) and in write
method call replace on cache:
public void write(Cache.Entry<? extends MyEntityId, ? extends MyEntity >
entry) throws CacheWriterException {
MyEntity myEntity = hibernateDao.saveOrUpdate(entry.getValue());
cache.loadAll(Sets.newHashSet(myEntity.getId()), true, null);
}
Regards,
Czeslaw
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Cache-refresh-because-of-hibernate-versioning-mechanism-tp14394p14722.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.