List of usage examples for org.springframework.data.mongodb.repository.support SpringDataMongodbSerializer SpringDataMongodbSerializer
public SpringDataMongodbSerializer(MongoConverter converter)
From source file:org.springframework.data.mongodb.repository.support.QueryDslMongoRepository.java
/** * Creates a new {@link QueryDslMongoRepository} for the given {@link MongoEntityInformation}, {@link MongoTemplate} * and {@link EntityPathResolver}.//from www.j av a 2 s. c o m * * @param entityInformation * @param mongoOperations * @param resolver */ public QueryDslMongoRepository(MongoEntityInformation<T, ID> entityInformation, MongoOperations mongoOperations, EntityPathResolver resolver) { super(entityInformation, mongoOperations); Assert.notNull(resolver); EntityPath<T> path = resolver.createPath(entityInformation.getJavaType()); this.builder = new PathBuilder<T>(path.getType(), path.getMetadata()); this.serializer = new SpringDataMongodbSerializer(mongoOperations.getConverter()); }