DATAMONGO-899 - Ensure proper creation of index structures for nested entities.

Index creation did not consider the properties path when creating the index. This lead to broken index creation when nesting entities that might require index structures.

Off now index creation traverses the entities property path for all top level entities (namely those holding the @Document annotation) and creates the index using the full property path.

This is a breaking change as having an entity to carry the @Document annotation has not been required by now.

Original Pull Request: #168
This commit is contained in:
Christoph Strobl
2014-04-10 19:51:41 +02:00
committed by Oliver Gierke
parent f359a1d31a
commit 7848da63f2
12 changed files with 1066 additions and 156 deletions

View File

@@ -312,6 +312,11 @@ public class Person {
document, making searches faster.</para>
</important>
<important>
<para>Automatic index creation is only done for types annotated with
<classname>@Document</classname>.</para>
</important>
<section id="mapping-usage-annotations">
<title>Mapping annotation overview</title>