Package org.springframework.data.mongodb.core.index

Examples of org.springframework.data.mongodb.core.index.IndexField


    assertThat(ii.isUnique(), is(true));
    assertThat(ii.isDropDuplicates(), is(true));
    assertThat(ii.isSparse(), is(false));

    List<IndexField> indexFields = ii.getIndexFields();
    IndexField field = indexFields.get(0);

    assertThat(field, is(IndexField.create("age", Direction.DESC)));
  }
View Full Code Here


    IndexInfo info = template.indexOps(Person.class).getIndexInfo().get(1);
    assertThat(info.isUnique(), is(true));
    assertThat(info.isSparse(), is(true));

    List<IndexField> indexFields = info.getIndexFields();
    IndexField field = indexFields.get(0);

    assertThat(field, is(IndexField.create("age", Direction.DESC)));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.core.index.IndexField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.