Skip to content

Commit cf33330

Browse files
committed
Polishing.
See #2416
1 parent ec2c844 commit cf33330

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/asciidoc/is-new-state-detection.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ The following table describes the strategies that Spring Data offers for detecti
77
[options = "autowidth",cols="1,1"]
88
|===
99
|`@Id`-Property inspection (the default)
10-
|By default, Spring Data inspects the id property of the given entity.
11-
If the id property is `null` or `0` in case of primitive types, then the entity is assumed to be new.
10+
|By default, Spring Data inspects the identifier property of the given entity.
11+
If the identifier property is `null` or `0` in case of primitive types, then the entity is assumed to be new.
1212
Otherwise, it is assumed to not be new.
1313

1414
|`@Version`-Property inspection
1515
|If a property annotated with `@Version` is present and `null`, or in case of a version property of primitive type `0` the entity is considered new.
1616
If the version property is present but has a different value, the entity is considered to not be new.
17-
If no version property is present Spring Data falls back to inspection of the id property.
17+
If no version property is present Spring Data falls back to inspection of the identifier property.
1818

1919
|Implementing `Persistable`
2020
|If an entity implements `Persistable`, Spring Data delegates the new detection to the `isNew(…)` method of the entity.

0 commit comments

Comments
 (0)