spring-data-couchbase icon indicating copy to clipboard operation
spring-data-couchbase copied to clipboard

Improve handling of hierarchy of classes [DATACOUCH-217]

Open spring-projects-issues opened this issue 9 years ago • 0 comments

Simon Baslé opened DATACOUCH-217 and commented

As per discussion with Oliver:

Look into TypeMapper. MongoTypeMapper has an extension to collate several concrete types of a class hierarchy and recognize them in a repository of the top parent class. Currently we sort of expect the type expansion to happen on the query side of things. So if you queried for the abstract type you'd basically return this into an "in (all known concrete type)" criteria for the query. Which keeps the complexity in the query and doesn't pollute the database that much


Affects: 2.1 M1 (Hopper)

1 votes, 2 watchers

spring-projects-issues avatar Mar 16 '16 17:03 spring-projects-issues