Skip to content

Commit 19f4fd1

Browse files
committed
Update documentation of AbstractEntityInformation.
Align documentation with the code behavior as the behavior was changed but the documentation was not updated with the previous change. Closes #2567
1 parent 8e5010c commit 19f4fd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/springframework/data/repository/core/support/AbstractEntityInformation.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
/**
2222
* Base class for implementations of {@link EntityInformation}. Considers an entity to be new whenever
23-
* {@link #getId(Object)} returns {@literal null}.
23+
* {@link #getId(Object)} returns {@literal null} or the identifier is a {@link Class#isPrimitive() Java primitive} and
24+
* {@link #getId(Object)} returns zero.
2425
*
2526
* @author Oliver Gierke
2627
* @author Nick Williams

0 commit comments

Comments
 (0)