Skip to content

Commit 52022a6

Browse files
mp911deschauder
authored andcommitted
Document effect of using AccessType(PROPERTY) in combination with Persistable.
Closes #2338 Original pull request #2339
1 parent 237760f commit 52022a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@
1919

2020
/**
2121
* Simple interface for entities.
22+
* <p>
23+
* Note that methods declared in this interface ({@link #getId()} and {@link #isNew()}) become property accessors when
24+
* implementing this interface in combination with
25+
* {@link org.springframework.data.annotation.AccessType @AccessType(PROPERTY)}. Either of these can be marked as
26+
* transient when annotated with {@link org.springframework.data.annotation.Transient @Transient}.
2227
*
2328
* @param <ID> the type of the identifier
2429
* @author Oliver Gierke
2530
* @author Christoph Strobl
31+
* @author Mark Paluch
2632
*/
2733
public interface Persistable<ID> {
2834

0 commit comments

Comments
 (0)