summaryrefslogtreecommitdiffstats
path: root/src/main/resources/sql/H2RegistrationDAOTest_populate.sql
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-05-11 15:49:43 +0200
committerTharre <tharre3@gmail.com>2018-05-11 15:49:43 +0200
commitf7d14a76123911f0bced08356a0c69e61147cb1b (patch)
treea75b0baa891453a14046c78503603d21986126c5 /src/main/resources/sql/H2RegistrationDAOTest_populate.sql
parentacd6b64e494192f7c73032240029bfa53dccb362 (diff)
parent5298356db60cd971fed686d379130102843db819 (diff)
downloadsepm-groupproject-f7d14a76123911f0bced08356a0c69e61147cb1b.tar.gz
sepm-groupproject-f7d14a76123911f0bced08356a0c69e61147cb1b.tar.xz
sepm-groupproject-f7d14a76123911f0bced08356a0c69e61147cb1b.zip
Merge branch 'develop'
Diffstat (limited to 'src/main/resources/sql/H2RegistrationDAOTest_populate.sql')
-rw-r--r--src/main/resources/sql/H2RegistrationDAOTest_populate.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/resources/sql/H2RegistrationDAOTest_populate.sql b/src/main/resources/sql/H2RegistrationDAOTest_populate.sql
new file mode 100644
index 0000000..7e7b428
--- /dev/null
+++ b/src/main/resources/sql/H2RegistrationDAOTest_populate.sql
@@ -0,0 +1,15 @@
+DELETE FROM Registration;
+DELETE FROM Vehicle;
+DELETE FROM VehicleVersion;
+DELETE FROM Employee;
+DELETE FROM EmployeeVersion;
+INSERT INTO EmployeeVersion (id, name, birthday, educationLevel, isDriver, isPilot) VALUES (1, 'John Doe', '2000-01-01', 'RS', TRUE, TRUE);
+INSERT INTO EmployeeVersion (id, name, birthday, educationLevel, isDriver, isPilot) VALUES (2, 'Nick "Kage" Verily', '1990-01-01', 'NKV', TRUE, FALSE);
+INSERT INTO EmployeeVersion (id, name, birthday, educationLevel, isDriver, isPilot) VALUES (3, 'Nicht Arzt', '1980-01-01', 'NA', FALSE, FALSE);
+INSERT INTO Employee (id, version) VALUES (1, 1);
+INSERT INTO Employee (id, version) VALUES (2, 2);
+INSERT INTO Employee (id, version) VALUES (3, 3);
+INSERT INTO VehicleVersion (id, name, hasNef, constructionType, type) VALUES (1, 'RTW-1', TRUE, 'HOCHDACH', 'RTW');
+INSERT INTO VehicleVersion (id, name, hasNef, constructionType, type) VALUES (2, 'NEF-1', FALSE, 'NORMAL', 'NEF');
+INSERT INTO Vehicle (id, version, status) VALUES (1, 1, 'ABGEMELDET');
+INSERT INTO Vehicle (id, version, status) VALUES (2, 2, 'ABGEMELDET'); \ No newline at end of file