This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Data Commons 3.4.0! |
Entity State Detection Strategies
The following table describes the strategies that Spring Data offers for detecting whether an entity is new:
|
By default, Spring Data inspects the identifier property of the given entity.
If the identifier property is |
|
If a property annotated with |
Implementing |
If an entity implements Note: Properties of |
Providing a custom |
You can customize the |