I am trying to trigger a method from one if my app services when an entity property is updated.
What i tried so far: I tried to create an AuditListener and use @PostUpdate, but with this approach i am having many problems with @Autowire my service + i cannot know which porperty has been updated, also i am lookin into envers implementation, placing @Audited only on the property, again having trouble with the service call.
I think Auditables are not for this kind of implementations, so i tried also with interceptors and event listeners, but again i'm strugglin with my service, an again i don't think this is the best approach since its interceps all events and even if i am filtering checking the entity i dont like to trigger it so much.
So, which other ways i have to do such kind of implementation, i am so new with java so probably theres and easy way to do this that i am missing.