Skip to content

Allow using complex types as Map keys [DATAMONGO-242] #1177

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened DATAMONGO-242 and commented

As indicated in DATAMONGO-241 it would be cool if we could support complex types as Map key types.

A few key points to consider:

  • complex key types require completely different storing (BasicDBList of BasicDBObject instances)
  • the inner BasicDBObject instances need keys to store key and value of the map entries, these should be configurable
  • we have to support scenarios where data in that custom format is read and written with custom converters being registered for the complex key type (which essentially result in a migration back to simple BasicDBObject instances
  • indexing metadata

Affects: 1.0 M3

Issue Links:

  • DATAMONGO-449 Spring-Data Mongo doesn't use converters while serializing key Objects from Map Properties
    ("is duplicated by")
  • DATAMONGO-485 Dont require Converters for Complex classes that are used as Ids
    ("is duplicated by")
  • DATAMONGO-241 Allow Map conversion behavior overriding

4 votes, 1 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: mappingMapping and conversion infrastructurestatus: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions