编程知识 cdmana.com

Springboot JPA setting InnoDB engine, mysql, and setting custom column names

 jpa:
  database-platform: org.hibernate.dialect.MySQL5InnoDBDialect  # If you don't add this sentence, it defaults to myisam engine 
  properties.hibernate.hbm2ddl.auto: update
  database: mysql
  hibernate:
   # Set custom column name 
   naming:
    implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyComponentPathImpl
    physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  show-sql: false

   
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.

 

版权声明
本文为[wx5a9cf3fe7bcbc]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/08/20210804211024538v.html

Scroll to Top