Programming language: Java
License: Apache License 2.0
Tags: Database     Projects    

Spring Data JPA MongoDB Expressions alternatives and similar libraries

Based on the "Database" category.
Alternatively, view spring-data-jpa-mongodb-expressions alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Spring Data JPA MongoDB Expressions or a related project?

Add another 'Database' Library


Spring Data JPA MongoDB Expressions

Java CI with Maven codecov javadoc Join the chat at https://gitter.im/spring-data-jpa-mongodb-expressions/community Tweet

How it works:

  1. Customize JPA Repository base class: java @SpringBootApplication @EnableJpaRepositories(repositoryBaseClass = ExpressionsRepositoryImpl.class) public class Application { … }
  2. Change your repository to extends ExpressionsRepository: java @Repository public interface EmployeeRepository extends ExpressionsRepository<Employee, Long> { }
  3. Build the controller/service:

    public ResponseEntity<Page<EmployeeDto>> search(@RequestBody Expressions expressions, Pageable pageable) {
    return ok().body(
                employeeRepository.findAll(expressions, pageable).map(employeeMapper::toDto)
  4. Send Mongodb query in JSON from frontend: image

Learn more

For quick start see this Medium post or dev.to post or see this demo example on Github.

See documentation website for details about how to get started.



🎖 Special Thanks

Special thanks to Rashad Saif and Hamada Elnoby for helping in the design, inspring with ideas, and for doing code review.

Next Release

See List of issues to be shipped in the next release

In the News

This repo has mentioned in spring.io weekly news.