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