Skip to content

Instantly share code, notes, and snippets.

@ouaibsky
Created September 6, 2016 09:32
Show Gist options
  • Save ouaibsky/3cd537b574df6466b8b7ff34349ef954 to your computer and use it in GitHub Desktop.
Save ouaibsky/3cd537b574df6466b8b7ff34349ef954 to your computer and use it in GitHub Desktop.
pjp: annotation + interface +method
@AfterReturning("this(org.springframework.data.jpa.repository.JpaRepository) "+
"&& @target(org.javers.spring.annotation.JaversSpringDataAuditable) "+
"&& execution(public * saveAndPublish(..)) ")
public void onSaveExecutedJpaRepo(JoinPoint pjp) {
onVersionEvent(pjp, saveHandler);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment