Browse Source

Document effect of using AccessType(PROPERTY) in combination with Persistable.

Closes #2338
Original pull request #2339
2.4.x
Mark Paluch 5 years ago committed by Jens Schauder
parent
commit
dca844dd6f
No known key found for this signature in database
GPG Key ID: 45CC872F17423DBF
  1. 6
      src/main/java/org/springframework/data/domain/Persistable.java

6
src/main/java/org/springframework/data/domain/Persistable.java

@ -19,10 +19,16 @@ import org.springframework.lang.Nullable; @@ -19,10 +19,16 @@ import org.springframework.lang.Nullable;
/**
* Simple interface for entities.
* <p>
* 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 <ID> the type of the identifier
* @author Oliver Gierke
* @author Christoph Strobl
* @author Mark Paluch
*/
public interface Persistable<ID> {

Loading…
Cancel
Save