Commit 39e6b904c17577e8e143ce5d8e2cf9e74b849c0c

Authored by Volodymyr Babak
1 parent 78436f9b

Fixed entity view cache evict

@@ -92,9 +92,6 @@ public class EntityViewServiceImpl extends AbstractEntityService implements Enti @@ -92,9 +92,6 @@ public class EntityViewServiceImpl extends AbstractEntityService implements Enti
92 private CustomerDao customerDao; 92 private CustomerDao customerDao;
93 93
94 @Autowired 94 @Autowired
95 - private AttributesService attributesService;  
96 -  
97 - @Autowired  
98 private CacheManager cacheManager; 95 private CacheManager cacheManager;
99 96
100 @Caching(evict = { 97 @Caching(evict = {
@@ -108,6 +105,7 @@ public class EntityViewServiceImpl extends AbstractEntityService implements Enti @@ -108,6 +105,7 @@ public class EntityViewServiceImpl extends AbstractEntityService implements Enti
108 return savedEntityView; 105 return savedEntityView;
109 } 106 }
110 107
  108 + @CacheEvict(cacheNames = ENTITY_VIEW_CACHE, key = "{#entityViewId}")
111 @Override 109 @Override
112 public EntityView assignEntityViewToCustomer(EntityViewId entityViewId, CustomerId customerId) { 110 public EntityView assignEntityViewToCustomer(EntityViewId entityViewId, CustomerId customerId) {
113 EntityView entityView = findEntityViewById(entityViewId); 111 EntityView entityView = findEntityViewById(entityViewId);