Skip to content

JaversSpringDataAuditableRepositoryAspect always gets highest precedence as it has no @Order annotation. #981

@ketannabera

Description

@ketannabera

To be able to add some custom logic before javers can finally audit the data by using '@AfterReturning' advices from 'JaversSpringDataAuditableRepositoryAspect.java' , it is needed for these advices to run after the custom ones. Since @after advices run in reverse order. so if we explicitly define @order(0) on this aspect then we can add our custom aspects and give them an @order(n>0).
One use case is if for some repository only certain type of data is to be audited, then we can filter the data in our custom aspect and then pass to the javers aspect to audit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions