Skip to content

Commit fa96b1e

Browse files
committed
Add PostgreSQL (DB Schema created via JPA)
1 parent e6903c6 commit fa96b1e

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@
153153
<artifactId>swagger-annotations</artifactId>
154154
<version>2.2.15</version>
155155
</dependency>
156+
<dependency>
157+
<groupId>org.postgresql</groupId>
158+
<artifactId>postgresql</artifactId>
159+
<version>42.7.3</version>
160+
</dependency>
156161
</dependencies>
157162
</dependencyManagement>
158163

server/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
<artifactId>h2</artifactId>
5555
<scope>runtime</scope>
5656
</dependency>
57+
<dependency>
58+
<groupId>org.postgresql</groupId>
59+
<artifactId>postgresql</artifactId>
60+
<scope>runtime</scope>
61+
</dependency>
5762
<dependency>
5863
<groupId>${project.groupId}</groupId>
5964
<artifactId>jmh-data-model</artifactId>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
spring.datasource.url=jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:2132}/${SPRING_DATASOURCE_DATABASE:benchscape}?createDatabaseIfNotExist=true
2+
spring.datasource.username=${SPRING_DATASOURCE_USERNAME:benchscape}
3+
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD:benchscape}
4+
# TODO Replace by liquibase or flyway
5+
spring.jpa.hibernate.ddl-auto=create
6+
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect

0 commit comments

Comments
 (0)