Browse Source
We previously used MongoTemplate.insertAll(…) which determines the collection to insert the individual elements based on the type, which - in cases of entity inheritance - will use dedicated collections for sub-types of the aggregate root. Subsequent lookups of the entities will then fail, as those are executed against the collection the aggregate root is mapped to. We now rather use ….insert(Collection, String) handing the collection of the aggregate root explicitly.pull/553/head
2 changed files with 21 additions and 3 deletions
Loading…
Reference in new issue