Is your feature request related to a problem? Please describe.
When using spring boot JpaRepository with custom delete methods i would like to use a javers annotation similar to JaversAuditableDelete.
E.g.:
@Repository
class DummyAuditedRepository {
List<DummyObject> deleteByName(String name) { ... }
}
Describe the solution you'd like
- create a new annotation for example
JaversAuditableConditionalDelete
- add AOP handler for the new annotation in
JaversAuditableAspect
- add a new method in
JaversCommitAdvice
** collect the returned object that it's a collection of entities
** handle entity removal similar to commitDeleteMethodArguments by calling commitShallowDelete
Describe alternatives you've considered
Handle the shallow delete calls directly from the caller of the repository without support from javers.
Is your feature request related to a problem? Please describe.
When using spring boot
JpaRepositorywith custom delete methods i would like to use a javers annotation similar toJaversAuditableDelete.E.g.:
Describe the solution you'd like
JaversAuditableConditionalDeleteJaversAuditableAspectJaversCommitAdvice** collect the returned object that it's a collection of entities
** handle entity removal similar to
commitDeleteMethodArgumentsby callingcommitShallowDeleteDescribe alternatives you've considered
Handle the shallow delete calls directly from the caller of the repository without support from javers.