Document effect of using AccessType(PROPERTY) in combination with Persistable.
Closes #2338 Original pull request #2339
This commit is contained in:
committed by
Jens Schauder
parent
ecbffa7a5a
commit
dca844dd6f
@@ -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> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user