@Component public class CrudRepositoryOnSaveAspect extends Object
RepositoryEvent
before and after each create and update operations of CrudRepository.| Constructor and Description |
|---|
CrudRepositoryOnSaveAspect(org.springframework.context.ApplicationEventPublisher eventPublisher,
EntityInformationProvider entityInformationProvider) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Object> |
onSave(org.springframework.data.repository.CrudRepository target,
Iterable iterable) |
Object |
onSave(org.springframework.data.repository.CrudRepository target,
Object entity) |
void |
saveIterable() |
void |
saveOne() |
@Autowired
public CrudRepositoryOnSaveAspect(org.springframework.context.ApplicationEventPublisher eventPublisher,
EntityInformationProvider entityInformationProvider)
Copyright © 2017. All rights reserved.