Search in sources :

Example 1 with ProductQuery

use of io.github.zutherb.appstash.shop.repository.product.model.ProductQuery in project the-app by devops-dojo.

the class ProductRepositoryImpl method findByQuery.

@Override
public Product findByQuery(ProductQuery productQuery) {
    Query query = new Query();
    ProductQueryUtils.applyCriterias(query, productQuery);
    return mongoOperations.findOne(query, Product.class);
}
Also used : Query(org.springframework.data.mongodb.core.query.Query) ProductQuery(io.github.zutherb.appstash.shop.repository.product.model.ProductQuery)

Aggregations

ProductQuery (io.github.zutherb.appstash.shop.repository.product.model.ProductQuery)1 Query (org.springframework.data.mongodb.core.query.Query)1