Has anyone had success using the @EnableNeo4jAuditing
annotation in SDN? I setup the auditing as outlined in the reference documentation here, but the auditing information was not being updated on save.
I did some investigating with the debugger, and it seems like I'm running into some weird issue where even though the Neo4jAuditingRegistrar
runs early in the boot procedure, and registers the Neo4jAuditingBeanPostProcessor
bean definition before the SessionFactory
is created in Neo4jDataAutoConfiguration
, the bean post processor doesnt get instantiated from the definition until after the session factory is instantiated and so the session factory does not get post processed.
I really don't know why this is the case, but it has the effect that the SessionFactory
never has the auditing event listener attached to it and so the auditing events aren't being processed.
I wonder if it is some kind of configuration race condition.