Condition:
On Service layer, while a transaction around a service method rollbacked , in the method, it occurs that the data cached is not concurrent with DB.For example, use ehcache , a method , is contained by entity(POJO) ,setXXX(...) happened as well as the data in cache is changed ,so that it is different from DB~~ How to resolve it?
Solution :
On Service layer, while a transaction around a service method rollbacked , in the method, it occurs that the data cached is not concurrent with DB.For example, use ehcache , a method , is contained by entity(POJO) ,setXXX(...) happened as well as the data in cache is changed ,so that it is different from DB~~ How to resolve it?
Solution :