-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify that @DnAttribute does not affect attribute mapping #459
Comments
spring-ldap's reference manual has the answer:
This deserves to be mentioned in the Javadoc for But still... having to add |
Document that `@Transient` should be added to fields annotated with `@DnAttribute` that must not be mapped to an object attribute. Fixes: spring-projects#459
I think I understand where you are coming from, and I do think there is a needed documentation improvement. The existing behavior seems to align with other serialization/mapping mechanisms like Java serialization or JPA. With Java serialization, all fields are mapped unless accompanied by the So, If I were to change something in the documentation, I would clarify that all fields are mapped by default to the entry. Any field that should not be mapped to the entry should be marked with I don't feel like If you agree, would you like to update your PR to adjust the documentation in this way? Or, if you feel we're not aligned yet, please help me see what I'm missing. Also, I've logged #722 to adjust the ODM sample to demonstrate this a little more clearly. |
Javadoc for
@DnAttribute
states:However, spring-ldap will also try to create an actual LDAP attribute with any field annotated with
@DnAttribute
. So either the documentation is wrong or this annotation does too much.In my case, using
causes a schema violation:
Please either document this behaviour or prevent
@DnAttribute
from affecting something else than the DN.The text was updated successfully, but these errors were encountered: