You can do this by implementing your own subclass of ReflectionDocumentMapper<T> as in this example.
Keep in mind Document IDs are only valid for the life of the current reader, so you probably don't want to use them for anything outside of the scope of methods you override in your DocumentMapper.
You can do this by implementing your own subclass of
ReflectionDocumentMapper<T>
as in this example.Keep in mind Document IDs are only valid for the life of the current reader, so you probably don't want to use them for anything outside of the scope of methods you override in your DocumentMapper.