Giter VIP home page Giter VIP logo

quering-data-with-spring-data-jpa's Introduction

Querying data with Spring Data JPA

Session structure

Welcome, in this session you will learn how to query data using Spring Data JPA. The session is divided into 3 parts:

  1. Using JPA repositories - branch name part-1-using-jpa-repos;
  2. Derived queries - branch name part-2-derived-queries;
  3. Query annotation - branch name part-3-query-annotation;

Each part (and its git branch) has a corresponding complete branch: part-1-complete, part-2-complete, part-3-complete.

Go through parts step-by-step by executing git checkout command, e.g.

git checkout -b part-1-using-jpa-repos origin/part-1-using-jpa-repos

System requirements

Make sure that your machine has the following things installed:

  • Java 8
  • Maven 3.7
  • Docker
  • Docker Compose (though later versions of Docker include CLI commands for compose as well)

It is also recommended to have the following (though not crucial):

  • DBMS application, e.g. MySQL Workbench or DBeaver
  • IDE application, e.g. Visual Studio Code, IntelliJ, Eclipse

Starting the project

  1. Start the mysql-db service in Docker container:

    1.1. Navigate to the root directory of the project in a terminal

    1.2. Execute the following command:

    docker-compose up -d

    OR if you use the latest version of Docker

    docker compose up -d
  2. Start the backend application:

    2.1. Navigate to the backend directory of the project in a terminal

    2.2. Start the project via IDE that you have. If you don't have IDE, then you can execute the following Maven command in the directory via a terminal:

    mvn spring-boot:run

quering-data-with-spring-data-jpa's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.