In JPA, there is @PrePersist and @PreUpdate annotations that allow operations before CRUD operations. I am trying to find out the ApsectJ equivalent to this.
My use case is a JPA application that was built by one team, now would like to add an Audit Aspect to each Pre-Persist and Pre-Update that occurs, without adding a lifecycle listener to the original Entity.
Read full article from jpa - Help create AspectJ equivellent to @PrePersist and @PreUpdate for audit use case - Stack Overflow
No comments:
Post a Comment