Hibernate field naming issue with Spring Boot (naming strategy)

后端 未结 6 904
粉色の甜心
粉色の甜心 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:41

    application.properties

    spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.DefaultComponentSafeNamingStrategy
    

    the above properties work for me. hibernate 4.3.11.Final spring boot 1.4.2.RELEASE

提交回复
热议问题