DATAMONGO-2067 - Polishing.

Tweak Javadoc and reference docs. Use pre/class=code instead of nested code tag.

Original pull request: #756.
This commit is contained in:
Mark Paluch
2019-05-27 10:56:43 +02:00
parent 505ca4d2c4
commit 7a22d697cf
3 changed files with 22 additions and 32 deletions

View File

@@ -428,9 +428,7 @@ Here is an example of a more complex mapping.
[source,java]
----
@Document
@CompoundIndexes({
@CompoundIndex(name = "age_idx", def = "{'lastName': 1, 'age': -1}")
})
@CompoundIndex(name = "age_idx", def = "{'lastName': 1, 'age': -1}")
public class Person<T extends Address> {
@Id
@@ -570,9 +568,7 @@ Here's an example that creates a compound index of `lastName` in ascending order
package com.mycompany.domain;
@Document
@CompoundIndexes({
@CompoundIndex(name = "age_idx", def = "{'lastName': 1, 'age': -1}")
})
@CompoundIndex(name = "age_idx", def = "{'lastName': 1, 'age': -1}")
public class Person {
@Id
@@ -587,7 +583,7 @@ public class Person {
[TIP]
====
`@CompoundIndex` is a repeatable annotation using `@CompoundIndexes` as the container.
`@CompoundIndex` is repeatable using `@CompoundIndexes` as its container.
[source,java]
----