Skip to content

Commit d6d4d47

Browse files
committed
Polishing.
Tweak wording. Original pull request: #2352.
1 parent d1a3f10 commit d6d4d47

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
@@ -6,12 +6,12 @@ The following table describes the strategies that Spring Data offers for detecti
66
.Options for detection whether an entity is new in Spring Data
77
[options = "autowidth",cols="1,1"]
88
|===
9-
|Id-Property inspection (the default)
9+
|`@Id`-Property inspection (the default)
1010
|By default, Spring Data inspects the version property of the given entity.
1111
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

14-
|Version-Property inspection
14+
|`@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.
1717
If no version property is present Spring Data falls back to inspection of the Id-Property.
@@ -23,7 +23,7 @@ See the link:https://docs.spring.io/spring-data/data-commons/docs/current/api/in
2323
_Note: Properties of `Persistable` will get detected and persisted if you use `AccessType.PROPERTY`.
2424
To avoid that, use `@Transient`._
2525

26-
|Implementing `EntityInformation`
26+
|Providing a custom `EntityInformation` implementation
2727
|You can customize the `EntityInformation` abstraction used in the repository base implementation by creating a subclass of the module specific repository factory and overriding the `getEntityInformation(…)` method.
2828
You then have to register the custom implementation of module specific repository factory as a Spring bean.
2929
Note that this should rarely be necessary.

0 commit comments

Comments
 (0)