Skip navigation links
Spring Data Neo4j

@NonNullApi

Package org.springframework.data.neo4j.repository.event

Contains the infrastructure for the event system.

See: Description

Package org.springframework.data.neo4j.repository.event Description

Contains the infrastructure for the event system. The event system comes in two flavours: Events that are based on Spring's application event system and callbacks that are based on Spring Data's callback system. Application events can be configured to run asynchronously, which make them a bad fit in transactional workloads.

As a rule of thumb, use Entity callbacks for modifying entities before persisting and application events otherwise. The best option however to react in a transactional way to changes of an entity is to implement DomainEvents on an aggregate root.

Since:
6.0
Author:
Michael J. Simons
Skip navigation links
Spring Data Neo4j

Copyright © 2019–2020 Neo4j, Neo4j Sweden AB. All rights reserved.