Open
Description
Oliver Drotbohm opened DATAMONGO-1169 and commented
MongoTemplate
has grown quite significantly over the last years. We should take a few steps to reduce its size a bit:
- move all nested classes into separate files
- extract logic to determine the collection name to be used into a dedicated component (
EntityMetadata
, could even includeQueryMapper
, too). - move execution of aggregations into separate component
- use
Query
NULL-object to avoid repeated instantiation
No further details from DATAMONGO-1169