Skip to content

Commit 75f15f9

Browse files
committed
Document combination of @DnAttribute and @transient
Document that `@Transient` should be added to fields annotated with `@DnAttribute` that must not be mapped to an object attribute. Fixes: spring-projects#459
1 parent 39ed146 commit 75f15f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/org/springframework/ldap/odm/annotations/DnAttribute.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
* prepended with the {@link org.springframework.ldap.odm.annotations.Entry#base()} value will be used
3232
* to figure out the distinguished name of entries to create and update.
3333
* </p>
34+
* <p>
35+
* A field annotated with {@code @DnAttribute} that shall not be bound to an Attribute, i.e. it is
36+
* only part of the Distinguished Name and not represented by an object attribute, must also be
37+
* annotated with {@link org.springframework.ldap.odm.annotations.Transient}.
38+
* </p>
3439
* @author Mattias Hellborg Arthursson
3540
* @since 2.0
3641
*/

0 commit comments

Comments
 (0)