-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: align the example to the blog post (#26)
- Loading branch information
Showing
6 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Create "movies" table | ||
CREATE TABLE "movies" ( | ||
"id" bigserial NOT NULL, | ||
"numberinseries" integer NULL, | ||
"title" character varying(255) NULL, | ||
PRIMARY KEY ("id") | ||
); | ||
-- Create "actors" table | ||
CREATE TABLE "actors" ( | ||
"name" character varying(255) NOT NULL, | ||
PRIMARY KEY ("name") | ||
); | ||
-- Create "movieparticipation" table | ||
CREATE TABLE "movieparticipation" ( | ||
"actorname" character varying(255) NOT NULL, | ||
"movieid" bigint NOT NULL, | ||
PRIMARY KEY ("actorname", "movieid"), | ||
CONSTRAINT "fkaq2kkwvh9870847sm35vtjtiy" FOREIGN KEY ("movieid") REFERENCES "movies" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION, | ||
CONSTRAINT "fktm8fbwa577lnbvwdjegwxvget" FOREIGN KEY ("actorname") REFERENCES "actors" ("name") ON UPDATE NO ACTION ON DELETE NO ACTION | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
h1:GGcfPGf8nfFlFivTvL1pZaln1ryq4XEx3z7VMT+4VP4= | ||
20231211121102.sql h1:X6GruO9lR7xlAfG/+PiHN7lpni3+j2DMIDEAWRSf5e0= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,3 @@ hibernate.show_sql=true | |
hibernate.format_sql=true | ||
hibernate.highlight_sql=true | ||
|
||
hibernate.hbm2ddl.auto=create |