From 0086eb7051cb3b8ee2f44dff63df882f43cb838f Mon Sep 17 00:00:00 2001 From: schlagi123 Date: Sat, 17 Jul 2021 11:30:48 +0200 Subject: [PATCH] fix small mistakes --- src/main/asciidoc/is-new-state-detection.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/asciidoc/is-new-state-detection.adoc b/src/main/asciidoc/is-new-state-detection.adoc index 865ec4029a..95579e756a 100644 --- a/src/main/asciidoc/is-new-state-detection.adoc +++ b/src/main/asciidoc/is-new-state-detection.adoc @@ -7,14 +7,14 @@ The following table describes the strategies that Spring Data offers for detecti [options = "autowidth",cols="1,1"] |=== |`@Id`-Property inspection (the default) -|By default, Spring Data inspects the version property of the given entity. -If the identifier property is `null` or `0` in case of primitive types, then the entity is assumed to be new. +|By default, Spring Data inspects the id property of the given entity. +If the id property is `null` or `0` in case of primitive types, then the entity is assumed to be new. Otherwise, it is assumed to not be new. |`@Version`-Property inspection |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. If the version property is present but has a different value, the entity is considered to not be new. -If no version property is present Spring Data falls back to inspection of the Id-Property. +If no version property is present Spring Data falls back to inspection of the id property. |Implementing `Persistable` |If an entity implements `Persistable`, Spring Data delegates the new detection to the `isNew(…)` method of the entity.