All Projects → mhewedy → spring-data-jpa-mongodb-expressions

mhewedy / spring-data-jpa-mongodb-expressions

Licence: Apache-2.0 license
Use the MongoDB query language to query your relational database, typically from frontend.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to spring-data-jpa-mongodb-expressions

vogon-java
Vogon - A simple personal finance tracker using Spring Boot and AngularJS
Stars: ✭ 16 (-81.4%)
Mutual labels:  jpa, hibernate, spring-data-jpa
Jplusone
Tool for automatic detection and asserting "N+1 SELECT problem" occurences in JPA based Spring Boot Java applications and finding origin of JPA issued SQL statements in general
Stars: ✭ 91 (+5.81%)
Mutual labels:  jpa, hibernate, spring-data-jpa
Spring-Boot-2
Spring Boot 2.x examples
Stars: ✭ 33 (-61.63%)
Mutual labels:  jpa, hibernate, spring-data-jpa
spring-discord-bot
Discord all-purpose bot, made using Spring Boot, JPA, Hibernate, REST, HikariCP. Written for fun, do not take this serious.
Stars: ✭ 26 (-69.77%)
Mutual labels:  jpa, hibernate, spring-data-jpa
Spring Framework Petclinic
A Spring Framework application based on JSP, Spring MVC, Spring Data JPA, Hibernate and JDBC
Stars: ✭ 251 (+191.86%)
Mutual labels:  jpa, hibernate, spring-data-jpa
Angularjs Springmvc Sample Boot
A RESTful sample using Spring Boot, Spring MVC, Spring Data and Angular/Bootstrap.
Stars: ✭ 309 (+259.3%)
Mutual labels:  jpa, hibernate, spring-data-jpa
Spring Boot Mysql Rest Api Tutorial
Building a Restful CRUD API using Spring Boot, Mysql, JPA and Hibernate
Stars: ✭ 279 (+224.42%)
Mutual labels:  jpa, hibernate, spring-data-jpa
Jpa Spec
A JPA Query By Specification framework.
Stars: ✭ 620 (+620.93%)
Mutual labels:  jpa, hibernate, spring-data-jpa
SpringMVC-Hibernate
J2EE项目系列(二)--博客管理系统(Maven+SpringMVC+Hibernate以及附加分页和一对多查询功能)
Stars: ✭ 48 (-44.19%)
Mutual labels:  hibernate, spring-data-jpa
Hibernate Orm Tutorials
40+ source code Examples/Tutorials/Guides of Hibernate ORM Framework
Stars: ✭ 106 (+23.26%)
Mutual labels:  jpa, hibernate
Spring Kotlin Exposed
playground for spring-boot 2.*, kotlin , jetbrains-exposed, postgres, jsonb, flyway, docker
Stars: ✭ 106 (+23.26%)
Mutual labels:  jpa, hibernate
Sample Boot Hibernate
Spring Boot + JPA ( Hibernate ) + Java8 [ DDD Sample ]
Stars: ✭ 97 (+12.79%)
Mutual labels:  jpa, hibernate
doc
QuickPerf documentation: https://github.com/quick-perf/doc/wiki/QuickPerf
Stars: ✭ 22 (-74.42%)
Mutual labels:  hibernate, spring-data-jpa
Spring Data Jpa Entity Graph
Spring Data JPA extension allowing full dynamic usage of EntityGraph on repositories
Stars: ✭ 221 (+156.98%)
Mutual labels:  jpa, spring-data-jpa
Hibernate Performance
Samples for "Hibernate performance tuning" talk
Stars: ✭ 87 (+1.16%)
Mutual labels:  jpa, hibernate
Jersey Jwt
Example of REST API with JWT authentication using Jersey, Jackson, Undertow, Weld, Hibernate and Arquillian.
Stars: ✭ 131 (+52.33%)
Mutual labels:  jpa, hibernate
Torpedoquery
Type safe Hibernate query builder (HQL)
Stars: ✭ 77 (-10.47%)
Mutual labels:  jpa, hibernate
Spring Boot 2 Oauth2 Authorization Jwt
Spring Boot 2 OAuth2 JWT Authorization server implementation with Database for Users and Clients (JPA, Hibernate, MySQL)
Stars: ✭ 115 (+33.72%)
Mutual labels:  jpa, hibernate
MiniDao
An powerful enhanced toolkit of SpringJdbc for simplify development
Stars: ✭ 200 (+132.56%)
Mutual labels:  jpa, hibernate
Hibernate Reactive
A reactive API for Hibernate ORM, supporting non-blocking database drivers and a reactive style of interaction with the database.
Stars: ✭ 167 (+94.19%)
Mutual labels:  jpa, hibernate

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:
@SpringBootApplication
@EnableJpaRepositories(repositoryBaseClass = ExpressionsRepositoryImpl.class)
public class Application { … }
  1. Change your repository to extends ExpressionsRepository:
@Repository
public interface EmployeeRepository extends ExpressionsRepository<Employee, Long> {
}
  1. Build the controller/service:
@PostMapping("/search")
public ResponseEntity<Page<EmployeeDto>> search(@RequestBody Expressions expressions, Pageable pageable) {
  
    return ok().body(
                employeeRepository.findAll(expressions, pageable).map(employeeMapper::toDto)
        );
}
  1. 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.

    Install:

    <dependency>
      <groupId>com.github.mhewedy</groupId>
      <artifactId>spring-data-jpa-mongodb-expressions</artifactId>
      <version>0.1.0</version>
    </dependency>
    

    Note: Starting from version 0.1.0 the library supports springboot 3, to use the library with springboot 2 use versions 0.0.x e.g. version 0.0.5.

    🎖 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.

    Online Validator

    see https://expressions-validator.fly.dev/ to help validate expressions

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].