Skip to content

Commit 8e267ad

Browse files
Add .hibernate.dialect.PostgreSQLDialect
1 parent b815f40 commit 8e267ad

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

src/main/resources/application-prod.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ spring:
66
username: ${USERNAME}
77
password: ${PASSWORD}
88

9+
jpa:
10+
hibernate:
11+
ddl-auto: update
12+
database-platform: org.hibernate.dialect.PostgreSQLDialect

src/main/resources/application.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
logging:
3-
#level:
3+
level:
4+
root: INFO
45
#root: WARN
56
#root: DEBUG
67
org:
@@ -15,18 +16,26 @@ spring:
1516
output:
1617
ansi:
1718
enabled: always
18-
19-
19+
instancio:
20+
bean:
21+
validation:
22+
enabled: true
23+
sql:
24+
init:
25+
mode: always
2026
profiles:
2127
##default: dev
2228
#active: dev
2329
active: prod
2430

2531
jpa:
32+
generate-ddl: true
2633
show-sql: true
2734
hibernate:
2835
format_sql: true
29-
ddl-auto: update
36+
ddl-auto: create
37+
#ddl-auto: update
38+
#ddl-auto: validate
3039

3140
rsa:
3241
private-key: classpath:certs/private.pem

0 commit comments

Comments
 (0)