Showing
1 changed file
with
1 additions
and
3 deletions
... | ... | @@ -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); | ... | ... |