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
This commit is contained in:
Mark Paluch
2022-03-02 08:52:07 +01:00
parent 10a437c29e
commit 8e241b1938

View File

@@ -20,7 +20,8 @@ import org.springframework.util.Assert;
/**
* Base class for implementations of {@link EntityInformation}. Considers an entity to be new whenever
* {@link #getId(Object)} returns {@literal null}.
* {@link #getId(Object)} returns {@literal null} or the identifier is a {@link Class#isPrimitive() Java primitive} and
* {@link #getId(Object)} returns zero.
*
* @author Oliver Gierke
* @author Nick Williams