See: Description
Interface | Description |
---|---|
BeforeBindCallback<T> |
Entity callback triggered before an Entity is bound to a record (represented by a
java.util.Map<String, Object> ). |
ReactiveBeforeBindCallback<T> |
Entity callback triggered before an Entity is bound to a record (represented by a
java.util.Map<String, Object> ). |
Class | Description |
---|---|
AuditingBeforeBindCallback |
EntityCallback to populate auditing related fields on an entity about to be bound to a record. |
IdGeneratingBeforeBindCallback |
Callback used to call the ID generator configured for an entity just before binding.
|
OptimisticLockingBeforeBindCallback |
Callback to increment the value of the version property for a given entity.
|
ReactiveAuditingBeforeBindCallback |
Reactive
EntityCallback to populate auditing related fields on an entity about to be bound to a record. |
ReactiveIdGeneratingBeforeBindCallback |
Callback used to call the ID generator configured for an entity just before binding.
|
ReactiveOptimisticLockingBeforeBindCallback |
Callback to increment the value of the version property for a given entity.
|
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.
Copyright © 2019–2020 Neo4j, Neo4j Sweden AB. All rights reserved.