Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 860 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 860 Bytes

Working with Databases in Java

  • JDBC
  • Datasource
  • Connection Pool
  • Flyway and JDBC Template

Diagram

diagram

How to get started

  • switch to branch git checkout start
  • watch YouTube video

Exercise

  • Add the ability to edit movies
  • Add actor table and associate them with movies You will need to create a new migration called: V1__ActorTable.sql and the following sql to create the actor table
CREATE TABLE actor
(
    id    bigserial primary key,
    name  TEXT NOT NULL,
    movie bigint REFERENCES movie (id),
    unique (name, movie)
);

Join the community