Closed
Description
While trying to annotate a field of type java.time.Instant
with @DnAttribute
, I got the following exception in my tests:
org.springframework.ldap.odm.core.impl.InvalidEntryException: Can't get Id field from Entry [...]
Caused by: org.springframework.ldap.odm.core.impl.MetaDataException: private java.time.Instant expiredTimestamp is of type class java.time.Instant, but only String attributes can be declared as @DnAttributes
Note that I do have Converter
s registered to convert between Instant
and String
, both ways.
If @DnAttribute
is really that much type-intolerant, this must be mentioned in its Javadoc and in the reference documentation.