Skip to content

Commit a909b93

Browse files
committed
DATAJPA-1622 - Polishing.
Original pull request: #433.
1 parent eecb232 commit a909b93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/asciidoc/jpa.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Spring Data JPA offers the following strategies to detect whether an entity is n
141141

142142
1. Version-Property and Id-Property inspection (*default*):
143143
By default Spring Data JPA inspects first if there is a Version-property of non-primitive type.
144-
If there is, the entity is considered new if the value is `null`.
144+
If there is, the entity is considered new if the value of that property is `null`.
145145
Without such a Version-property Spring Data JPA inspects the identifier property of the given entity.
146146
If the identifier property is `null`, then the entity is assumed to be new.
147147
Otherwise, it is assumed to be not new.
@@ -302,7 +302,8 @@ public interface UserRepository extends JpaRepository<User, Long> {
302302
----
303303
====
304304

305-
Spring Data tries to resolve a call to these methods to a named query, starting with the simple name of the configured domain class, followed by the method name separated by a dot. So the preceding example would use the named queries defined earlier instead of trying to create a query from the method name.
305+
Spring Data tries to resolve a call to these methods to a named query, starting with the simple name of the configured domain class, followed by the method name separated by a dot.
306+
So the preceding example would use the named queries defined earlier instead of trying to create a query from the method name.
306307

307308
[[jpa.query-methods.at-query]]
308309
=== Using `@Query`

0 commit comments

Comments
 (0)