We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e5010c commit 19f4fd1Copy full SHA for 19f4fd1
src/main/java/org/springframework/data/repository/core/support/AbstractEntityInformation.java
@@ -20,7 +20,8 @@
20
21
/**
22
* Base class for implementations of {@link EntityInformation}. Considers an entity to be new whenever
23
- * {@link #getId(Object)} returns {@literal null}.
+ * {@link #getId(Object)} returns {@literal null} or the identifier is a {@link Class#isPrimitive() Java primitive} and
24
+ * {@link #getId(Object)} returns zero.
25
*
26
* @author Oliver Gierke
27
* @author Nick Williams
0 commit comments