Hibernate field naming issue with Spring Boot (naming strategy)

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

    This worked for me with spring boot 1.4.0 and hibernate entitymanager 4.3.8.Final

    application.properties

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

提交回复
热议问题