diff --git a/pom.xml b/pom.xml index f0f583b51e..2779e4af95 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.data spring-data-commons - 2.5.0-SNAPSHOT + 2.5.0-GH-2338-SNAPSHOT Spring Data Core @@ -339,7 +339,7 @@ 0.1.4 test - + org.jmolecules.integrations jmolecules-spring diff --git a/src/main/java/org/springframework/data/domain/Persistable.java b/src/main/java/org/springframework/data/domain/Persistable.java index 8a89fdbda2..a084196622 100644 --- a/src/main/java/org/springframework/data/domain/Persistable.java +++ b/src/main/java/org/springframework/data/domain/Persistable.java @@ -19,10 +19,16 @@ /** * Simple interface for entities. + *

+ * Note that methods declared in this interface ({@link #getId()} and {@link #isNew()}) become property accessors when + * implementing this interface in combination with + * {@link org.springframework.data.annotation.AccessType @AccessType(PROPERTY)}. Either of these can be marked as + * transient when annotated with {@link org.springframework.data.annotation.Transient @Transient}. * * @param the type of the identifier * @author Oliver Gierke * @author Christoph Strobl + * @author Mark Paluch */ public interface Persistable {