Skip to content

Commit 4d7b667

Browse files
committed
Fix "missing" tables by changing naming strategy.
1 parent a8bccee commit 4d7b667

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/resources/application-prod.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ spring.jpa.database-platform: ru.mystamps.web.support.hibernate.MySql5InnoDbDial
1212
spring.jpa.show-sql: true
1313
spring.jpa.properties.hibernate.format_sql: true
1414
spring.jpa.properties.hibernate.connection.charset: UTF-8
15-
# Mode sets to none until the following ticket will be resolved: https://github.com/spring-projects/spring-boot/issues/3034
16-
spring.jpa.properties.hibernate.hbm2ddl.auto: none
17-
#spring.jpa.properties.hibernate.hbm2ddl.auto: validate
15+
spring.jpa.properties.hibernate.hbm2ddl.auto: validate
16+
# our mapping doesn't conform to org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy that is used by default
17+
spring.jpa.hibernate.naming_strategy: org.hibernate.cfg.EJB3NamingStrategy
1818

1919
spring.mail.host: 127.0.0.1
2020
spring.mail.port: 25

src/main/resources/application-test.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ spring.jpa.database-platform: org.hibernate.dialect.H2Dialect
1010
spring.jpa.show-sql: false
1111
spring.jpa.properties.hibernate.format_sql: true
1212
spring.jpa.properties.hibernate.connection.charset: UTF-8
13-
# Mode sets to none until the following ticket will be resolved: https://github.com/spring-projects/spring-boot/issues/3034
14-
spring.jpa.properties.hibernate.hbm2ddl.auto: none
15-
#spring.jpa.properties.hibernate.hbm2ddl.auto: validate
13+
spring.jpa.properties.hibernate.hbm2ddl.auto: validate
14+
# our mapping doesn't conform to org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy that is used by default
15+
spring.jpa.hibernate.naming_strategy: org.hibernate.cfg.EJB3NamingStrategy
1616

1717
spring.mail.host: 127.0.0.1
1818
spring.mail.port: 1025

0 commit comments

Comments
 (0)