Hibernate field naming issue with Spring Boot (naming strategy)

后端 未结 6 911
粉色の甜心
粉色の甜心 2020-11-29 09:31

Note that this code does work with plain Spring but not with Spring Boot(v1.3.3), is there something i\'m missing because this is imported from a spring app that works. The

6条回答
  •  野性不改
    2020-11-29 09:38

    If you are using Spring Boot 2.0.2 and Hibernate 5.3.4 then setting the following property will fix the issue.

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

提交回复
热议问题