Skip to content

Commit 96622a0

Browse files
committed
feature: amp-126 init project db and mapper and service
* Add flyway to create tables and fk constraint * Add entities * Add repositories * Add repository tests to prove flyway and jpa line up ok * Add MapStruct mapper layer * Add simple service layer
1 parent 2766dee commit 96622a0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
gradle
1+
gradle/wrapper
22
bin/*
33
!bin/run-in-docker.sh
44
.gradle
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dependencies {
2+
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
3+
implementation 'org.postgresql:postgresql'
4+
implementation 'org.springframework.boot:spring-boot-starter-flyway'
5+
implementation 'org.flywaydb:flyway-core'
6+
implementation 'org.flywaydb:flyway-database-postgresql'
7+
testImplementation("org.springframework.boot:spring-boot-testcontainers:4.0.0")
8+
testImplementation 'org.testcontainers:postgresql:1.21.3'
9+
testImplementation 'org.testcontainers:junit-jupiter:1.21.3'
10+
}

0 commit comments

Comments
 (0)