Skip to main content

Fundamentals of CockroachDB with Java Spring Boot

Learn CockroachDB while building a toy Java application using Hibernate/JPA

  • Course Number

    fundamentals-of-crdb-for-java-devs
  • Self-Paced

  • Estimated Effort

    2 hrs/week

About This Course

In this course, you will build a full-stack ride-sharing application in Java using Sprint Boot with Spring Data JPA. You will start with a simple version that manages a fleet of scooters and their current positions. You will add features one by one as the course progresses until you have a highly functional application that is ready to track vehicles and users at scale.

In this course, you'll learn how to:

  • Create and modify a table in the SQL Shell
  • Model your data's schema in Java Hibernate/JPA
  • Perform transactions using Java Hibernate/JPA
  • ...and more!

For this course, you’ll be using CockroachDB Serverless, which is our database-as-a-service offering.

Prerequisites

Before taking this course, you should have experience with Java application development.

It is helpful but not required to be familiar with SQL.

If you’ve never used CockroachDB Serverless before, we would also suggest taking our “Introduction to Serverless Databases and CockroachDB Serverless” course first.

Detailed course outline

  • Welcome
  • Installation and Setup
    • Install CockroachDB
    • Set up a serverless CockroachDB cluster
  • Getting started
    • Introducing MovR
    • Getting started with MovR labs
    • Lab: Create and Populate the Vehicles Table
  • Developing your application
    • MovR Application Architecture
        • Lab: Configure and start MovR
    • Entity Models and CRUD Operations
      • Modeling, reading and writing data
      • Implementing Service Methods
      • Lab: Add Vehicles in the MovR Application
      • Lab: Delete Vehicles in the MovR Application
    • Table and Entity Relationships
      • Creating Tables and Relationships in the SQL Shell
      • Defining Entity Relationships
      • Lab: Track Location History
    • Creating and Altering Tables
      • Using Arrays and Altering Tables in the SQL Shell
      • Lab: Create Database Tables for Users and Rides
      • Lab: Add Users and Rides to the MovR Application
  • Final Exam
  • Wrapping up

Course Staff

Will Cross
Will Cross
Staff Curriculum Developer @ Cockroach Labs

Frequently Asked Questions

What web browser should I use?

The Open edX platform works best with current versions of Chrome, Edge, Firefox, Internet Explorer, or Safari.

See our list of supported browsers for the most up-to-date information.

Enroll