Browse Source

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
pull/2571/head
Mark Paluch 4 years ago
parent
commit
8e241b1938
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 3
      src/main/java/org/springframework/data/repository/core/support/AbstractEntityInformation.java

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

@ -20,7 +20,8 @@ import org.springframework.util.Assert; @@ -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

Loading…
Cancel
Save