Browse Source

Fixed entity view cache evict

pull/1178/head
Volodymyr Babak 8 years ago
parent
commit
39e6b904c1
  1. 4
      dao/src/main/java/org/thingsboard/server/dao/entityview/EntityViewServiceImpl.java

4
dao/src/main/java/org/thingsboard/server/dao/entityview/EntityViewServiceImpl.java

@ -91,9 +91,6 @@ public class EntityViewServiceImpl extends AbstractEntityService implements Enti
@Autowired @Autowired
private CustomerDao customerDao; private CustomerDao customerDao;
@Autowired
private AttributesService attributesService;
@Autowired @Autowired
private CacheManager cacheManager; private CacheManager cacheManager;
@ -108,6 +105,7 @@ public class EntityViewServiceImpl extends AbstractEntityService implements Enti
return savedEntityView; return savedEntityView;
} }
@CacheEvict(cacheNames = ENTITY_VIEW_CACHE, key = "{#entityViewId}")
@Override @Override
public EntityView assignEntityViewToCustomer(EntityViewId entityViewId, CustomerId customerId) { public EntityView assignEntityViewToCustomer(EntityViewId entityViewId, CustomerId customerId) {
EntityView entityView = findEntityViewById(entityViewId); EntityView entityView = findEntityViewById(entityViewId);

Loading…
Cancel
Save