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