spring-data-couchbase
spring-data-couchbase copied to clipboard
Improve handling of hierarchy of classes [DATACOUCH-217]
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