springboot:table_naming_being_ignored

Table Naming Being Ignored

Since Spring 5, Naming using @Table(name=“XxxXxxXxx”) will get you something like xxx_xxx_xxx for table name instead of the name you typed. To fix it, add

spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

in your application.properties files

  • springboot/table_naming_being_ignored.txt
  • Last modified: 2020/12/11 17:46
  • by chongtin