Examples of BasicDBObjectBuilder


Examples of com.mongodb.BasicDBObjectBuilder

    Query query = new Query();

    DBObject dbo = mapper.getMappedFields(query.getFieldsObject(),
        context.getPersistentEntity(WithTextScoreProperty.class));

    assertThat(dbo, equalTo(new BasicDBObjectBuilder().add("score", new BasicDBObject("$meta", "textScore")).get()));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.